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.
Это упражнение является частью курса
Experimental Design in R
Инструкции к упражнению
- 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.
Интерактивное практическое упражнение
Попробуйте выполнить это упражнение, дополнив этот пример кода.
# Load agricolae
___
# Design a LS with 5 treatments A:E then look at the sketch
___
___