Drawing Latin Squares with agricolae
We return, once again, to the agricolae
package to examine what a Latin Square design can look like. Here's an example:
[,1] [,2] [,3] [,4]
[1,] "B" "D" "A" "C"
[2,] "A" "C" "D" "B"
[3,] "D" "B" "C" "A"
[4,] "C" "A" "B" "D"
Since a Latin Square experiment has two blocking factors, you can see that in this design, each treatment appears once in both each row (blocking factor 1) and each column (blocking factor 2).
Look at the help page for design.lsd()
by typing ?design.lsd
in the console for any help you need designing your Latin Square experiment.
This exercise is part of the course
Experimental Design in R
Exercise instructions
- Load the
agricolae
package. - Create and view the sketch of a Latin Square design,
my_design_lsd
, using treatments A, B, C, D, & E, and aseed
of 42.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Load agricolae
___
# Design a LS with 5 treatments A:E then look at the sketch
___
___