Show Menu
Cheatography

Statistical Analysis with R Cheat Sheet (DRAFT) by

A small reference sheet for common R commands that are used in statistical analysis. Methods include t-tests, ANOVA, pairwise t-tests, post-hoc tests, normality and homoscedasticity tests, and plotting along with other miscellaneous stuff.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Introd­uction

The following cheat-­sheet contains a few bits of R code that you might find useful for performing statis­tical analysis in scientific settings. A great complement to this sheet is the wonderful R Handbook by Salvatore S. Mangiafico in which you can find more in-depth explan­ations of the theory that goes along with the code.

Downloads

Base Software
 
R Enviro­nment
Allows you to run R code. Pretty important.
Download
R Studio
The IDE in which you'll write your code. Other good altern­atives include Jupyter Notebooks and VSCode.
Download
R Packages
Most of the code in this sheet depends on one or more of the packages listed below so make sure you install them all.
psych
FSA
lattice
lsr
rcompanion
ggplot2
car
multcompView
lsmeans
phia