MulaiMulai sekarang secara gratis

Drawing Graeco-Latin Squares with agricolae

As we've seen, agricolae provides us the ability to draw all of the experimental designs we've used so far, and they can also draw Graeco-Latin squares. One difference in the input to design.graeco() that we haven't seen before is that we'll need to input 2 vectors, trt1 and trt2, which must be of equal length. You can think of trt1 as your actual treatment and trt2 as one of your blocking factors. agricolae has been loaded for you.

Latihan ini adalah bagian dari kursus

Experimental Design in R

Lihat Kursus

Petunjuk latihan

  • Create vectors trt1 with LETTERS A through E and trt2 with numbers 1 through 5.
  • Make my_graeco_design with design.graeco(), using and seed = 42.
  • Examine the parameters and sketch of my_graeco_design.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create trt1 and trt2
___
___

# Create my_graeco_design
___

# Examine the parameters and sketch
___
___
Edit dan Jalankan Kode