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.
Diese Übung ist Teil des Kurses
Experimental Design in R
Anleitung zur Übung
- Load the
agricolaepackage. - Create and view the sketch of a Latin Square design,
my_design_lsd, using treatments A, B, C, D, & E, and aseedof 42.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Load agricolae
___
# Design a LS with 5 treatments A:E then look at the sketch
___
___