Statistics for Laboratory Scientists - Code

The code on this page is in R markdown, which can easily be run in the freely available environment R Studio.

See here how to install R and R Studio.

See the Getting Started section of the R resources for some videos and tutorials.

A very useful shortcut in R Studio is Ctrl + Enter in your script, which evaluates that line of code. Many more keyboard shortcuts are here.


Topic
R as a calculator [ html | rmd ]
Summarizing and presenting data [ html | rmd ]
Random variables and distributions [ html | rmd ] advanced [ html | rmd ]
Sampling distributions [ html | rmd ]
Confidence intervals [ html | rmd ] advanced [ html | rmd ]
Hypothesis testing [ html | rmd ] advanced [ html | rmd ]
Sample size and power calculations [ html | rmd ] advanced [ html | rmd ]
Permutation and non-parametric tests [ html | rmd ] advanced [ html | rmd ]
Confidence intervals for proportions [ html | rmd ]
Maximum likelihood estimation [ html | rmd ] advanced [ html | rmd ]
Goodness of fit [ html | rmd ] advanced [ html | rmd ]
Contingency tables [ html | rmd ]
Analysis of variance [ html | rmd ] advanced [ html | rmd ]
Analysis of variance / multiple comparisons [ html | rmd ] advanced [ html | rmd ]
Analysis of variance / model assumptions and diagnostics [ html | rmd ] advanced [ html | rmd ]
Analysis of variance / non-parametric methods [ html | rmd ] advanced [ html | rmd ]
Analysis of variance / nested models [ html | rmd ] advanced [ html | rmd ]
Analysis of variance / two-way models [ html | rmd ]
Correlation [ html | rmd ]
Linear regression [ html | rmd ] advanced [ html | rmd ]
Prediction and calibration [ html | rmd ] advanced [ html | rmd ]
Regression and correlation [ html | rmd ] advanced [ html | rmd ]
Multiple linear regression [ html | rmd ] advanced [ html | rmd ]
Non-linear regression [ html | rmd ] advanced [ html | rmd ]
Logistic regression [ html | rmd ] advanced [ html | rmd ]
Survival analysis [ html | rmd ]
Linear mixed effects / longitudinal data analysis [ html | rmd ]
Linear mixed effects / analysis of variance [ html | rmd ]
Multiple comparisons [ html | rmd ] advanced [ html | rmd ]
Error propagation [ html | rmd ]
Principal components analysis [ html | rmd ]