Learn R Programming

userfriendlyscience (UFS)

Userfriendlyscience contains a number of functions that serve two goals. First, to make R more accessible to people migrating from SPSS by adding a number of functions that behave roughly like their SPSS equivalents (also see http://rosettastats.com). Second, to make a number of slightly more advanced functions more user friendly to relatively novice users. The package also conveniently houses a number of additional functions that are intended to increase the quality of methodology and statistics in psychology, not by offering technical solutions, but by shifting perspectives, for example towards reasoning based on sampling distributions as opposed to on point estimates.

The package imports functions from many other packages, which is in line with its function as a 'wrapper package': UFS aims to make many existing functions easier for users coming from SPSS, so sometimes a function is added when it saves the user just some data preparing.

The only publications where the package has been mentioned so far are available at:

Four more have been submitted for publication and are currently available as preprints at PsyArXiv:

  • Peters, G.-J. Y. & Crutzen, R. (2017). Knowing exactly how effective an intervention, treatment, or manipulation is and ensuring that a study replicates: accuracy in parameter estimation as a partial solution to the replication crisis. http://osf.io/cjsk2/

  • Peters, G.-J. Y. & Gruijters, S. (2017). Why your experiments fail: sample sizes required for randomization to generate equivalent groups as a partial solution to the replication crisis. http://osf.io/38vfn/

  • Crutzen, R., Peters, G.-J. Y., & Noijen, J. (2017). How to Select Relevant Social-Cognitive Determinants and Use them in the Development of Behaviour Change Interventions? Confidence Interval-Based Estimation of Relevance. http://osf.io/5gnmz/

  • Gruijters, S., & Peters, G.-J. Y. (2017). Introducing the Numbers Needed for Change (NNC): A practical measure of effect size for intervention research. http://osf.io/2bau7/

All are (and will be) Open Access. Please cite the manual and/or one of these publications when you use the package.

If you have any questions, you can reach me at gjalt-jorn@userfriendlyscience.com.

Copy Link

Version

Install

install.packages('userfriendlyscience')

Monthly Downloads

177

Version

0.7.2

License

GPL (>= 3)

Last Published

September 24th, 2018

Functions in userfriendlyscience (0.7.2)

confIntProp

Confidence intervals for proportions, vectorized over all arguments
confIntOmegaSq

Confidence intervals for Omega Squared
findShortestInterval

Find the shortest interval
formatCI

Pretty formatting of confidence intervals
confIntR

A function to compute a correlation's confidence interval
ggBarChart

Bar chart using ggplot
ggBoxplot

Box plot using ggplot
confIntV

crossTab, confIntV and cramersV
detectRareWords

Looking up word frequencies
descr

descr (or descriptives)
basicSPSStranslationFunctions

Basic SPSS translation functions
determinantStructure

Determinant Structure specification
dCohensd

The distribution of Cohen's d
checkDataIntegrity

Conveniently checking data integrity
invertItems

invertItems
RsqDist

The distribution of R squared (as obtained in a regression analysis)
escapeRegex

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

dlvPlot
determinantStructure Preprocessing

Functions to preprocess determinant structures
iqrOutlier

Identify outliers according to the IQR criterion
convert

conversion functions
createSigma

createSigma: convenience function for mvrnorm
biAxisDiamondPlot

Diamondplot with two Y axes
facComAnalysis

Wrapper for psych's factor analysis and principal components analysis functions
faConfInt

Extract confidence bounds from psych's factor analysis object
factorLoadingDiamondCIplot

Two-dimensional visualisation of factor analyses
convert.d.to.nnc

Helper functions for Numbers Needed for Change
meanDiff.multi

meanDiff.multi
exceptionalScores

exceptionalScores
fanova

Flexible anova
ggEasyPlots

Convenience functions for ggplots based on multiple variables
extractVarName

Extract variable names
ggDiamondLayer

Basic ggplot2 diamond plot layer construction functions
ggPie

A ggplot pie chart
ggConfidenceCurve

Confidence Curves
ggNNC

Visualising Numbers Needed for Change
meanSDtoDiamondPlot

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

Sample distribution based plotting of proportions
itemInspection

itemInspection
prevalencePower

Power analysis for establishing a prevalence
genlog

Generalized Logistic Analysis
genlogFunction

Generalized Logistic Function
is.nr

is.nr
oneway

oneway
curfnfinder

Function to find the name of the calling function
isTrue

isTrue
userfriendlysciencePrintMethods

userfriendlyscience print methods
paginatedAsymmetricalScatterMatrix

paginatedAsymmetricalScatterMatrix
pwr.omegasq

Power calculations for Omega Squared.
logRegr

Userfriendly wrapper to do logistic regression in R
ggqq

Easy ggplot Q-Q plot
importLimeSurveyData

importLimeSurveyData
rMatrix

rMatrix
meanDiff

meanDiff
posthocTGH

posthocTGH
powerHist

powerHist
multiResponse

Generate a table for multiple response questions
diamondPlot

Basic diamond plot construction function
didacticPlot

didacticPlot
regrInfluential

Detecting influential cases in regression analyses
knitFig

Easily knit a custom figure fragment
examine

Examine one or more variables
multiVarFreq

Generate a table collapsing frequencies of multiple variables
exceptionalScore

exceptionalScore
reliability

Reliability function similar to the SPSS RELIABILITY command
freq

Frequency tables
nnc

Numbers Needed for Change
randomizationSuccess

Computations for successful randomization
regr

regr: a simple regression analysis wrapper
testRetestReliability

testRetestReliability
normalityAssessment

normalityAssessment and samplingDistribution
scaleDiagnosis

scaleDiagnosis
userfriendlysciencePanderMethods

userfriendlyscience methods to pander objects
piecewiseRegr

Piecewise regression analysis
scaleInspection

scaleInspection and a number of useful helper functions
scaleDiagnosisToPDF

scaleDiagnosisToPDF
testRetestSimData

testRetestSimData is a simulated dataframe used to demonstrate the testRetestAlpha coefficient function.
processOpenSesameIAT

processOpenSesameIAT
pwr.confIntR

Determine required sample size for a given confidence interval width for Pearson's r
meansComparisonDiamondPlot

meansComparisonDiamondPlot and duoComparisonDiamondPlot
fullFact

fullFact
scaleStructure

scaleStructure
scatterMatrix

scatterMatrix
setCaptionNumbering

Convenience function for numbered captions in knitr (and so, RMarkdown)
meansDiamondPlot

Diamond plots
therapyMonitor

therapyMonitor & therapyMonitor.multi
sharedSubString

sharedSubString
setFigCapNumbering

Automatic caption numbering knitr hooks for figures and tables
scatterPlot

Easy ggplot2 scatter plots
showPearsonPower

Visualisation of the power of a Pearson correlation test
therapyMonitorData

Data originally published with therapyMonitor
oddsratio

oddsratio
omegaSqDist

The distribution of Omega Squared
simDataSet

simDataSet
sort.associationMatrix

sort.associationMatrix
userfriendlyscienceBasics

userfriendlyscience basics
processLSvarLabels

A function to conveniently process LimeSurvey labels
userfriendlyscience-package

Userfriendlyscience (UFS)
processLimeSurveyDropouts

processLimeSurveyDropouts
validComputations

Only compute means or sums for cases with enough nonmissings
removeExceptionalValues

removeExceptionalValues
testRetestAlpha

testRetestAlpha
rnwString

rnwString functions
testRetestCES

testRetestCES
asymmetricalScatterMatrix

asymmetricalScatterMatrix
associationsDiamondPlot

A diamondplot with confidence intervals for associations
averageFishersZs

averageFishersZs
associationMatrix Helper Functions

associationMatrix Helper Functions
averagePearsonRs

averagePearsonRs
CIBER

Confidence Interval-Based Estimation of Relevance (CIBER)
associationMatrix

associationMatrix
Singh

Verbal and physical aggression scores from Singh et al. (2007)
areColors

Check whether elements of a vector are valid colors