MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Experimental Design in R

Lihat Kursus

Petunjuk latihan

  • 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 a seed of 42.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Load agricolae
___

# Design a LS with 5 treatments A:E then look at the sketch
___
___
Edit dan Jalankan Kode