R code from classes

Below is a list of R code divided by topic. Keep in mid that all the code to generate this website and the class notes can be found on GitHub.

Design structure (week 1)

Treatment structure (week 2)

Mixed models and split-plot designs (week 3)