Randomized Complete Block Designs (RCBD)

Experimental Design in R

Joanne Xiong

Data Scientist

RCBDs

  • Randomized - the treatment is assigned randomly inside each block
  • Complete - each treatment is used the same number of times in every block
  • Block - experimental groups are blocked to be similar (e.g. by sex)
  • Design - this is your experiment!
Experimental Design in R

RCBD workflow

alt text

Experimental Design in R

agricolae

library(agricolae)
trt <- letters[1:4]
rep <- 4
design.rcbd <- design.rcbd(trt,
                           r = rep,
                           seed = 42,
                           serie = 0)
design.rcbd$sketch
     [,1] [,2] [,3] [,4]
[1,] "d"  "c"  "a"  "b" 
[2,] "b"  "a"  "d"  "c" 
[3,] "d"  "a"  "b"  "c" 
[4,] "a"  "b"  "d"  "c"
Experimental Design in R

Model validation - Interaction plots

with(dataset, interaction.plot(x.factor, trace.factor, response))
# example with the ToothGrowth dataset
with(ToothGrowth, interaction.plot(dose, supp, len))

alt text

Experimental Design in R

Let's practice!

Experimental Design in R

Preparing Video For Download...