lsr v0.5


Monthly downloads



Companion to "Learning Statistics with R"

A collection of tools intended to make introductory statistics easier to teach, including wrappers for common hypothesis tests and basic data manipulation. It accompanies Navarro, D. J. (2015). Learning Statistics with R: A Tutorial for Psychology Students and Other Beginners, Version 0.5. [Lecture notes] School of Psychology, University of Adelaide, Adelaide, Australia. ISBN: 978-1-326-18972-3. URL:

Functions in lsr

Name Description
expandFactors Expand factors to a set of contrasts
lsr-package Companion to "Learning Statistics with R"
sortFrame Sort a data frame
standardCoefs Standardised regression coefficients
posthocPairwiseT Post-hoc pairwise t-tests for ANOVA
permuteLevels Permute the levels of a factor
aad Mean (average) absolute deviation from the mean
modeOf Sample mode
longToWide Reshape from long to wide
oneSampleTTest One sample t-test
rowCopy Copy a vector into a matrix
cramersV Cramer's V
wideToLong Reshape from wide to long
who Contents of workspace
unlibrary Unload a package
quantileCut Cut by quantiles
correlate Correlation matrices
associationTest Chi-square test of association / independence
cohensD Cohen's d
independentSamplesTTest Independent samples t-test
pairedSamplesTTest Paired samples t-test
ciMean Confidence interval around the mean
tFrame Transpose a data frame
bars Grouped Bar Plots with Error Bars
goodnessOfFitTest Chi-square test against specified probabilities
rmAll Remove all objects
importList Import a list
etaSquared Effect size calculations for ANOVAs
No Results!

Last month downloads


Type Package
Date 2015-03-01
License GPL-3
LazyLoad yes
Packaged 2015-03-02 01:25:45 UTC; dan
NeedsCompilation no
Repository CRAN
Date/Publication 2015-03-02 08:03:10
Contributors Daniel Navarro

Include our badge in your README