Learn R Programming

⚠️There's a newer version (0.7.2) of this package.Take me there.

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

33

Version

0.7.0

License

GPL (>= 3)

Maintainer

GjaltJorn Peters

Last Published

November 17th, 2017

Functions in userfriendlyscience (0.7.0)

averagePearsonRs

averagePearsonRs
associationMatrix Helper Functions

associationMatrix Helper Functions
associationMatrix

associationMatrix
Singh

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

Check whether elements of a vector are valid colors
RsqDist

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

A diamondplot with confidence intervals for associations
CIBER

Confidence Interval-Based Estimation of Relevance (CIBER)
biAxisDiamondPlot

Diamondplot with two Y axes
asymmetricalScatterMatrix

asymmetricalScatterMatrix
confIntOmegaSq

Confidence intervals for Omega Squared
averageFishersZs

averageFishersZs
confIntProp

Confidence intervals for proportions, vectorized over all arguments
dCohensd

The distribution of Cohen's d
checkDataIntegrity

Conveniently checking data integrity
convert

conversion functions
basicSPSStranslationFunctions

Basic SPSS translation functions
createSigma

createSigma: convenience function for mvrnorm
dlvPlot

dlvPlot
convert.d.to.nnc

Helper functions for Numbers Needed for Change
diamondPlot

Basic diamond plot construction function
confIntR

A function to compute a correlation's confidence interval
determinantStructure

Determinant Structure specification
confIntV

crossTab, confIntV and cramersV
determinantStructure Preprocessing

Functions to preprocess determinant structures
examine

Examine one or more variables
escapeRegex

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

exceptionalScore
factorLoadingDiamondCIplot

Two-dimensional visualisation of factor analyses
genlog

Generalized Logistic Analysis
fanova

Flexible anova
ggBarChart

Bar chart using ggplot
curfnfinder

Function to find the name of the calling function
didacticPlot

didacticPlot
exceptionalScores

exceptionalScores
faConfInt

Extract confidence bounds from psych's factor analysis object
extractVarName

Extract variable names
genlogFunction

Generalized Logistic Function
facComAnalysis

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

itemInspection
freq

Frequency tables
knitFig

Easily knit a custom figure fragment
fullFact

fullFact
ggConfidenceCurve

Confidence Curves
descr

descr (or descriptives)
detectRareWords

Looking up word frequencies
ggDiamondLayer

Basic ggplot2 diamond plot layer construction functions
findShortestInterval

Find the shortest interval
is.nr

is.nr
isTrue

isTrue
formatCI

Pretty formatting of confidence intervals
ggNNC

Visualising Numbers Needed for Change
ggEasyPlots

Convenience functions for ggplots based on multiple variables
ggqq

Easy ggplot Q-Q plot
ggPie

A ggplot pie chart
logRegr

Userfriendly wrapper to do logistic regression in R
meanDiff

meanDiff
ggProportionPlot

Sample distribution based plotting of proportions
multiResponse

Generate a table for multiple response questions
nnc

Numbers Needed for Change
multiVarFreq

Generate a table collapsing frequencies of multiple variables
userfriendlysciencePanderMethods

userfriendlyscience methods to pander objects
normalityAssessment

normalityAssessment and samplingDistribution
importLimeSurveyData

importLimeSurveyData
meansComparisonDiamondPlot

meansComparisonDiamondPlot and duoComparisonDiamondPlot
prevalencePower

Power analysis for establishing a prevalence
userfriendlysciencePrintMethods

userfriendlyscience print methods
meansDiamondPlot

Diamond plots
processLSvarLabels

A function to conveniently process LimeSurvey labels
processLimeSurveyDropouts

processLimeSurveyDropouts
posthocTGH

posthocTGH
oddsratio

oddsratio
omegaSqDist

The distribution of Omega Squared
powerHist

powerHist
processOpenSesameIAT

processOpenSesameIAT
pwr.omegasq

Power calculations for Omega Squared.
pwr.confIntR

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

rMatrix
ggBoxplot

Box plot using ggplot
scatterMatrix

scatterMatrix
invertItems

invertItems
scatterPlot

Easy ggplot2 scatter plots
iqrOutlier

Identify outliers according to the IQR criterion
simDataSet

simDataSet
sort.associationMatrix

sort.associationMatrix
meanDiff.multi

meanDiff.multi
meanSDtoDiamondPlot

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

scaleInspection and a number of useful helper functions
oneway

oneway
scaleStructure

scaleStructure
paginatedAsymmetricalScatterMatrix

paginatedAsymmetricalScatterMatrix
randomizationSuccess

Computations for successful randomization
testRetestAlpha

testRetestAlpha
regr

regr: a simple regression analysis wrapper
testRetestCES

testRetestCES
piecewiseRegr

Piecewise regression analysis
scaleDiagnosisToPDF

scaleDiagnosisToPDF
regrInfluential

Detecting influential cases in regression analyses
therapyMonitor

therapyMonitor & therapyMonitor.multi
reliability

Reliability function similar to the SPSS RELIABILITY command
userfriendlyscience-package

Userfriendlyscience (UFS)
testRetestSimData

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

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

removeExceptionalValues
setFigCapNumbering

Automatic caption numbering knitr hooks for figures and tables
rnwString

rnwString functions
testRetestReliability

testRetestReliability
sharedSubString

sharedSubString
showPearsonPower

Visualisation of the power of a Pearson correlation test
scaleDiagnosis

scaleDiagnosis
userfriendlyscienceBasics

userfriendlyscience basics
validComputations

Only compute means or sums for cases with enough nonmissings