随机完全区组设计(RCBD)

R 中的实验设计

Joanne Xiong

Data Scientist

RCBDs

  • 随机——在每个区组内随机分配处理
  • 完全——每个区组中各处理重复次数相同
  • 区组——按相似特征分组(如性别)
  • 设计——这就是你的实验!
R 中的实验设计

RCBD 工作流程

流程图

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"
R 中的实验设计

模型验证——交互作用图

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

交互作用图

R 中的实验设计

Passons à la pratique !

R 中的实验设计

Preparing Video For Download...