Experimental Design in R
Joanne Xiong
Data Scientist
Balanced - each pair of treatments occur together in a block an equal number of times
Incomplete - not every treatment will appear in every block
Block - experimental groups are blocked to be similar (e.g. by sex)
Design - this is your experiment!
Let:
r = # replications
$\lambda = r \times \dfrac{(k-1)}{t-1}$
$\lambda$ is whole number? There is a BIBD!
library(agricolae)
trt <- c("A","B","C","D")
k <- 3
my_design <- design.bib(trt,k,seed = 42)
Parameters BIB
==============
Lambda : 2
treatmeans : 4
Block size : 3
Blocks : 4
Replication: 3
$\lambda = r \times \dfrac{(k-1)}{t-1}$
lambda = 2 * (2-1) / 4-1
lambda = 2/3 # = 0.667
$\lambda = r \times \dfrac{(k-1)}{t-1}$
lambda = 3 * (3-1) / 4-1
lambda = 6/3 # = 2
Experimental Design in R