436 11 ANOVA and Elements of Experimental Design
%epsGG.m and epsHF.m available on MATLAB Central.
F = 9.2436; %F statistic for testing treatment differences
p = 1-fcdf(F,k-1,(n-1)
*
(k-1)) %original pvalue 0.0028
%
padjGG = 1-fcdf(F,epsGG
*
(k-1),epsGG
*
(n-1)
*
(k-1)) %0.0085
padjHF = 1-fcdf(F,epsHF
*
(k-1),epsHF
*
(n-1)
*
(k-1)) %0.0053
Note that both degrees of freedom in the F statistic for testing the treat-
ments are multiplied by correction factors, which increased the original p-
value. In this example the corrections for circularity did not change the orig-
inal decision of rejection of hypothesis H
0
stating the equality of treatment
effects.
11.6 Nested Designs*
In the factorial design two-way ANOVA, two factors are crossed. This means
that at each level of factor A we get measurements under all levels of factor B,
that is, all cells in the design are nonempty. In Example 11.4, two factors,
HEC and LPS, given at two levels each (“yes” and “no”), form a 2
×2 table with
four cells. The factors are crossed, meaning that for each combination of levels
we obtained observations. Sometimes this is impossible to achieve due to the
nature of the experiment.
Suppose, for example, that four diets are given to mice and that we are
interested in the mean concentration of a particular chemical in the tissue.
Twelve experimental animals are randomly divided into four groups of three
and each group put on a particular diet. After 2 weeks the animals are sac-
rificed and from each animal the tissue is sampled at five different random
locations. The factors “diet” and “animal” cannot be crossed. After a single di-
etary regime, taking measurements on an animal requires its sacrifice, thus
repeated measures designs are impossible.
The design is nested, and the responses are
y
i jk
=µ +α
i
+β
j(i)
+²
i jk
, i =1,... , 4; j =1, ...,3; k = 1,...,5,
where
µ is the grand mean, α
i
is the effect of the ith diet, and β
j(i)
is the effect
of animal j, which is nested within treatment i.
For a general balanced two-factor nested design,
y
i jk
=µ +α
i
+β
j(i)
+²
i jk
, i =1,.. . , a; j =1,..., b; k =1,..., n,
the identifiability constraints are
P
a
i
=1
α
i
=0, and for each i,
P
b
j
=1
β
j(i)
=0. The
ANOVA identity SST
=SS A +SSB(A) +SSE is