ufs25.7.1 package

A Collection of Utilities

A_VarghaDelaney

Vargha & Delaney's A

aipedjmv

Sample size for accuracy: d

aiperjmv

Sample size for accuracy: r

areColors

Check whether elements of a vector are valid colors

arr

Absolute Relative Risk and confidence interval

associationMatrix

associationMatrix

associationMatrixHelperFunctions

associationMatrix Helper Functions

associationsDiamondPlot

A diamondplot with confidence intervals for associations

attenuate.d

Attenuate a Cohen's d estimate for unreliability in the continuous var...

attenuate.r

Attenuate a Pearson's r estimate for unreliability in the measurements

BAC_plot

Bland-Altman Change plot

basicDiamondplotFunctions

Basic ggplot2 diamond plot layer construction functions

bfi-data

25 Personality items representing 5 factors

biAxisDiamondPlot

Diamondplot with two Y axes

carelessObject

Compute diagnostics for careless responding

carelessReport

A report to help diagnosing careless responders

cat0

Concatenate to screen without spaces

checkDataIntegrity

Conveniently checking data integrity

checkPkgs

Check for presence of a package

CIM

Conceptual Independence Matrix

cohensDdistribution

The distribution of Cohen's d

comparisonDiamondPlots

meansComparisonDiamondPlot and duoComparisonDiamondPlot

confintdjmv

Effect Size Confidence Interval: Cohens's d

confIntOmegaSq

Confidence intervals for Omega Squared

confIntProp

Confidence intervals for proportions, vectorized over all arguments

confIntR

A function to compute a correlation's confidence interval

confintrjmv

Effect Size Confidence Interval: Pearson's r

confIntSD

Confidence interval for standard deviation

convert.d.to.U3

Convert Cohen's d to U3

convert

conversion functions

convertToNumeric

Conveniently convert vectors to numeric

cramersV

Cramer's V and its confidence interval

descriptives

descr (or descriptives)

diamondPlot

Basic diamond plot construction function

disattenuate.d

Disattenuate a Cohen's d estimate for unreliability in the continuous ...

disattenuate.r

Disattentuate a Pearson's r estimate for unreliability

escapeRegex

Escapes any characters that would have special meaning in a reqular ex...

exceptionalScore

Find exceptional scores

exceptionalScores

Find exceptional scores

exportToHTML

Exporting tables to HTML

extractVarName

Extract variable names

fa_failsafe

Do factor-analysis, logging warnings and errors

faConfInt

Extract confidence bounds from psych's factor analysis object

factorLoadingDiamondCIplot

Two-dimensional visualisation of factor analyses

zotero_nr_of_items

Get number of items in a public Zotero group

factorLoadingHeatmap

Two-dimensional visualisation of factor analyses

findShortestInterval

Find the shortest interval

formatCI

Pretty formatting of confidence intervals

formatPvalue

Pretty formatting of p values

formatR

Pretty formatting of correlation coefficients

getData

Use a dialog to load data from an SPSS file

ggBarChart

Bar chart using ggplot

ggBoxplot

Box plot using ggplot

ggEasyPlots

Convenience functions for ggplots based on multiple variables

ggPie

A ggplot pie chart

ggProportionPlot

Sample distribution based plotting of proportions

ggqq

Easy ggplot Q-Q plot

ggSave

Save a ggplot with specific defaults

heading

Print a heading

ifelseObj

Conditional returning of an object

IN

Case insensitive version of %in%

insertNumberedCaption

Insert numbered caption

invertingItems

invertItems

zotero_construct_export_call

Construct the URL for a Zotero export call

iqrOutlier

Identify outliers according to the IQR criterion

irpplot

Visualising individual response patterns

is.nr

NULL and NA 'proof' checking of whether something is a number

is.odd

Checking whether numbers are odd or even

isTrue

More flexible version of isTRUE

itemScaleColours

Create colours for a response scale for an item

kblXtra

Wrapper for kableExtra for consistent ufs table styling

knitAndSave

knitAndSave

zotero_download_and_export_items

Download and save all items in a public Zotero group

knitFig

Easily knit a custom figure fragment

makeScales

Title

massConvertToNumeric

Converting many dataframe columns to numeric

meanConfInt

A confidence interval for the mean

meansDiamondPlot

Diamond plots

meansDiamondPlotjmv

Diamond plot: means

meanSDtoDiamondPlot

A diamond plot based on means, standard deviations, and sample sizes

multiResponse

Generate a table for multiple response questions

multiResponsejmv

Multi Response

multiVarFreq

Generate a table collapsing frequencies of multiple variables

nncConversion

Helper functions for Numbers Needed for Change

normalHist

normalHist

normalityAssessment

normalityAssessment and samplingDistribution

noZero

Remove one or more zeroes before the decimal point

omegasq

The distribution of Omega Squared

opts

Options for the ufs package

parallelSubscales

Split a dataset into two parallel halves

pwr.bootES

Estimate required sample size for accuracy in parameter estimation usi...

pwr.confIntProp

Estimate required sample size for accuracy in parameter estimation of ...

pwr.confIntR

Determine required sample size for a given confidence interval width f...

zotero_get_all_items

Get all items in a public Zotero group

pwr.omegasq

Power calculations for Omega Squared.

quietRemotesInstall

Quietly update a package from a remote repository

qVec

Convenience function to quickly copy-paste a vector

rbind_df_list

Bind lots of dataframes together rowwise

rbind_dfs

Simple alternative for rbind.fill or bind_rows

regrInfluential

Detecting influential cases in regression analyses

repeatStr

Repeat a string a number of times

report

Output report from results

safeRequire

Load a package, install if not available

scaleDiagnosis

scaleDiagnosis

scaleStructure

scaleStructure

scatterMatrix

scatterMatrix

setCaptionNumberingKnitrHook

Set a knitr hook for caption numbering

sharedSubString

sharedSubString

simDataSet

Simulate a dataset

spearmanBrown

Spearman-Brown formula

strToFilename

Convert a string to a safe filename

suspectParticipants

Selects suspect participants from a carelessObject

testRetestAlpha

Test-Retest Alpha Coefficient

testRetestCES

Test-Retest Coefficient of Equivalence & Stability

testRetestReliability

testRetestReliability

vecTxt

Easily parse a vector into a character value

viridisPalette

Convenience function to get 2-7 color viridis palettes

wrapVector

Wrap all elements in a vector

This is a new version of the 'userfriendlyscience' package, which has grown a bit unwieldy. Therefore, distinct functionalities are being 'consciously uncoupled' into different packages. This package contains the general-purpose tools and utilities (see the 'behaviorchange' package, the 'rosetta' package, and the soon-to-be-released 'scd' package for other functionality), and is the most direct 'successor' of the original 'userfriendlyscience' package. For example, this package contains a number of basic functions to create higher level plots, such as diamond plots, to easily plot sampling distributions, to generate confidence intervals, to plan study sample sizes for confidence intervals, and to do some basic operations such as (dis)attenuate effect size estimates.

  • Maintainer: Gjalt-Jorn Peters
  • License: GPL (>= 3)
  • Last published: 2025-07-29