Professional Documents
Culture Documents
Two-way ANOVA
Example. (Moore/McCabe Example 13.34)
Red palm oil, due to its high content of vitamin A, is thought to reduce the occurence
and severity of malarity for young children.
To investigate whether this is indeed the case,
a supplement will be prepared that contains
either a placebo, a low dose, or a high dose
of red palm oil. Because boys and girls may
differ in exposure to malaria and the response
to the red palm oil supplement, we consider a
two-way ANOVA, that takes also gender into
account. Suppose we recruit 75 boys and 75
girls to the study. We will then randomly assign 25 of each gender to each of the red
palm oil levels:
Gender
Red palm oil Girls Boys Total
Placebo
25
25
50
Low dose
25
25
50
High dose
25
25
50
Total
75
75
150
165
nij
1 X
x
ij =
xijk ,
nij k=1
Pnij
xij )
k=1 (xijk
2 /(n 1)):
ij
P
2
ij (nij 1)sij
SSE
=
= MSE,
N IJ
DFE
where DFE = observationsgroups = N IJ.
s2 =
167
with
DFM = groups1 = IJ 1.
i =
X
j
j =
()ij = 0.
i,j
169
All p-values are below 0.01%, so both manufacturer and development method have an
impact.
There is also an interaction effect:
F = 61.756/5.811 = 10.627
Degrees of freedom:
(3 1)(3 1) = 4 and 45 3 3 = 36
Critical value: F0.05(4, 36) = 2.63
This implies that main effects must be checked
for each level of the other factor separately.
171
Linear Models
Dependent Variable: Brightness Brightness
Source
DF
Sum of
Squares Mean Square F Value Pr > F
8 1776.044444
Model
Error
36
Corrected Total
44 1985.244444
222.005556
209.200000
38.20
<.0001
5.811111
Source
7.704411
2.410625
31.28889
Process
165.644444
82.822222
14.25
<.0001
Film
2 1363.377778
681.688889
117.31
<.0001
Process*Film
61.755556
10.63
<.0001
247.022222
Because the randomized complete block design is just a two-way ANOVA with one observation per cell, we may test the null hypothesis
H0 : 1 = 2 = = k .
with an F -test of the form
MSTR
F =
F (k 1, (k 1)(b 1)),
MSE
where k denotes the number of treatments
and b denotes the number of blocks.
Note that the randomized complete block design assumes that there is no interaction between treatments and blocks!
177
Degrees of freedom:
Treatment:
Block:
Error:
51=4
51=4
(5 1)(5 1) = 16
There is a significant main effect for treatments, but not for blocks.
178
1
1
+
ni
nj
5.41
2
= 1.471.
5
Covariance
Parameter
Estimates
Cov Parm Estimate
5.4100
Residual
Effect
Treatment
16
3.87
0.0219
Block
16
2.30
0.1032
Treatment Estimate
Standard
Error DF t Value Pr > |t|
Treatment 1
6.2000
1.0402
16
5.96
<.0001
Treatment 2
8.2000
1.0402
16
7.88
<.0001
Treatment 3
6.6000
1.0402
16
6.34
<.0001
Treatment 4
5.8000
1.0402
16
5.58
<.0001
Treatment 5
10.8000
1.0402
16
10.38
<.0001
Standard
Treatment Treatment Estimate
Error DF t Value Pr > |t| Adjustment
Adj P
Treatment 1
-2.0000
1.4711
16
-1.36
0.1928 Bonferroni
1.0000
Treatment 1
-0.4000
1.4711
16
-0.27
0.7892 Bonferroni
1.0000
Treatment 1
0.4000
1.4711
16
0.27
0.7892 Bonferroni
1.0000
Treatment 1
-4.6000
1.4711
16
-3.13
0.0065 Bonferroni
0.0650
Treatment 2
1.6000
1.4711
16
1.09
0.2929 Bonferroni
1.0000
Treatment 2
2.4000
1.4711
16
1.63
0.1223 Bonferroni
1.0000
Treatment 2
-2.6000
1.4711
16
-1.77
0.0962 Bonferroni
0.9622
Treatment 3
0.8000
1.4711
16
0.54
0.5941 Bonferroni
1.0000
Treatment 3
-4.2000
1.4711
16
-2.86
0.0115 Bonferroni
0.1146
Treatment 4
-5.0000
1.4711
16
-3.40
0.0037 Bonferroni
0.0367
i
X
i(1)
i(2)
A
33.867
1
0
B
30.733
-0.5
1
C
29.267
-0.5
-1
P 2
i
1.5
2
L2 = 1.467, s(L2) =
s(L) =
MSE
2
i /n.
Linear Models
Least Squares Means
Process
Brightness LSMEAN
LSMEAN Number
33.8666667
30.7333333
29.2666667
1
2
0.0011
<.0001
0.0011
<.0001
0.1043
0.1043
NOTE: To ensure overall protection level, only probabilities associated with pre-planned comparisons should be used.
Contrast
149.5111111
149.5111111
25.73
<.0001
H2: processes B vs C
16.1333333
16.1333333
2.78
0.1043