Académique Documents
Professionnel Documents
Culture Documents
B
D
C
A
A
A
B
C
C
B
D
D
D
C
A
B
RCBD model
response treatment + block + error
Here block=
no treatment:block interaction.
Treatments and blocks are crossed factors.
level.
RCBD model
Treatment
Control
Arasan
Spergon
Semesan
Fermate
Mean (yk )
1
86
98
96
97
91
93.6
Block
2
3
90
88
94
93
90
91
95
91
93
95
92.4 91.6
4
87
89
92
92
95
91.0
Mean (yj )
87.75
93.50
92.25
93.75
93.50
y = 92.15
Model:
Yi = + j[i] + k[i] + ei
jk =
+
j + k . How?
Trt
1
2
1
+ 1 + 1
+ 2 + 1
+ a + 1
+ 1
Block
2
+ 1 + 2
+ 2 + 2
+ a + 2
+ 2
b
+ 1 + b
+ 2 + b
+ a + b
+ b
= y
j = yj y
k = yk y if fixed block effects
j
+ 1
+ 2
+ a
df
SS
MS
Block
b1
SSBlk
MSBlk
k=1 k
e2 + a b1
(fixed)
2
2
e + a (random) f test
Trt
Error
Total
a1
(b 1)(a 1)
ab 1
SSTrt
SSErr
SSTot
MSTrt
MSErr
e2 + b
e2
IE(MS)
Pb
Pa
2
j=1 j
a1
f test
df for
MSBlk MSErr
a
ANOVA table
MSBlk
on df = b 1, (b 1)(a 1)
MSErr
MSTrt
Fa1, (b1)(a1)
MSErr
df
4
3
12
19
SS
102.30
18.95
85.30
206.55
MS
25.58
6.32
7.11
ANOVA table
F
3.598
0.889
p-value
0.038
0.47
Model assumptions
The model assumes:
1
A
A
B
C
C
B
D
D
Model diagnostics
Check that residuals (ri = yi yi ):
approximately have a normal distribution,
no pattern (trend, unequal variance) across blocks.
no pattern (trend, unequal variance) across treatments.
plot(fit.lm)
Residuals vs Fitted
Constant Leverage:
Residuals vs Factor Levels
Normal QQ
17 1
2
90
92
Fitted values
94
88
17
Standardized residuals
1
0
1
Standardized residuals
1
0
1
Residuals
0
1
0
1
Theoretical Quantiles
17
5
block 4:
3
2
Factor Level Combinations
Additivity assumption
Additivity: when each block affects all the trts uniformly.
To assess the absence of interactions visually, use a mean
profile plot. Additivity should show up as parallelism.
Arasan
block
1
4
3
2
Fermate Spergon
treatment
mean of emergence
86 88 90 92 94 96 98
mean of emergence
86 88 90 92 94 96 98
with(emerge,
interaction.plot(treatment,block,emergence, col=1:4)
treatment
Fermate
Semesan
Spergon
Arasan
Control
3
block
Additivity assumption
slope
B
B
D D
D
A
A
C C
block
df
Blocks
Treatment
Plot Error
Subsamp.
Total
SS
MS
b1
SSBlk
MSBlk
a1
(a 1)(b 1)
ab(s 1)
abs 1
SSTrt
SSPE
SSSSE
SSTot
MSTrt
MSPE
MSSSE
IE(MS)
e2
e2 +
e2 +
e2
s2
s2
s2
Pb
+ as
+ bs
k2
Pb1
a
2
j=1 j
a1
j=1
MSTrt
Fa1, (b1)(a1) .
MSPE
Outline
C
C
D
B
A
D
A
B
C
A
A
B
C
A
D
B
A
C
B
D
B
D
A
C
D
B
C
A
Another example?
Randomization
Example: 3 3 Latin square design.
A
B
C
B
C
A
C
A
B
Randomly arrange the rows, except for the first one. For
example, in R,
> sample(2:3);
[1] 3 2
where
is a population mean, averaged over treatments
P
j is a fixed trt effect (irrigation) constrained to aj=1 j = 0
P
rk is a fixed row effect (slope) constrained to ak=1 rk = 0
P
cl is a fixed column effect (soil) constrained to al=1 cl = 0
Soil moisture: a = 4. There are a total of a2 = 16 observations.
All 3 factors are crossed. No interaction.
df
a1
a1
a1
(a 1)(a 2)
a2 1
SS
SSRow
SSCol
SSTrt
SSErr
SSTot
MS
MSRow
MSCol
MSTrt
MSErr
To test H0 : j = 0 for all j (i.e., no trt effect) use the fact that
under H0 ,
MSTrt
Fa1,(a1)(a2)
F =
MSErr
Millet example
Yields of plots of millet, from 5 treatments (A, B, C, D, and E)
arranged in a 5 by 5 Latin square.
Row
1
2
3
4
5
Mean
1
B: 253
D: 255
E: 190
A: 203
C: 230
226.2
Treatment:
i ):
Mean (Y
2
E: 226
A: 293
B: 260
C: 204
D: 270
250.6
A
272.4
Column
3
A: 285
E: 265
C: 298
D: 237
B: 275
272.0
B
265.4
4
C: 283
B: 290
D: 254
E: 193
A: 333
270.6
C
255.0
5
D: 188
C: 260
A: 248
B: 249
E: 327
254.4
D
240.8
Mean
247.0
272.6
250.0
217.2
287.0
254.76
E
240.2
treatment, data=millet)
Pr(>F)
0.04531 *
0.22900
0.45229
> anova(
AIC F value
Pr(F)
181.70
192.55 3.3764 0.04531 *
184.58 1.6356 0.22900
180.79 0.9844 0.45229
Because of balance: the type I and type III SS are equal: the
results (F and p-values) do not depend on the order.
Week 1:
Operator
George
John
Ralph
Mon
C
B
A
Tues
A
C
B
Wed
B
A
C
Model:
Y = treatment + square + square:row + square:column + error
Yi = + j + sh + rhk + chl + ei
where
j = 1, . . . , a
h = 1, . . . , m
k = 1, . . . , a
l = 1, . . . , a
indexes treatment
indexes square (here:
)
indexes row within square (
indexes column within square (
)
)
df
m1
m(a 1)
m(a 1)
a1
m(a 1)(a 2) + (m 1)(a 1)
ma2 1
SS
SSSq
SSRow
SSCol
SSTrt
SSErr
SSTot
To test H0 : j = 0 for all j (i.e., no trt effect) use the fact that
under H0 ,
F =
MSTrt
Fa1, m(a1)(a2)+(m1)(a1) .
MSErr