Data from the completely between subject design, Table 25.1, page 552.
data list list / a b y. begin data. 1 1 14 1 2 13 1 3 15 1 1 15 1 2 12 1 3 17 1 1 12 1 2 15 1 3 15 1 1 13 1 2 16 1 3 16 1 1 13 1 2 12 1 3 15 2 1 7 2 2 8 2 3 13 2 1 8 2 2 6 2 3 10 2 1 7 2 2 11 2 3 11 2 1 7 2 2 11 2 3 11 2 1 8 2 2 11 2 3 10 end data.
Table 25.3, page 557. Analysis of variance from the completely between-subject design with Factor B nested within Factor A.
glm y by b a /random = b /design = a b(a).
Data from the completely within-subject design, Table 25.1, page 552.
data list list / s a b y. begin data. 1 1 1 13 1 1 2 12 1 1 3 12 1 2 1 7 1 2 2 12 1 2 3 12 2 1 1 16 2 1 2 13 2 1 3 18 2 2 1 10 2 2 2 12 2 2 3 11 3 1 1 15 3 1 2 13 3 1 3 14 3 2 1 5 3 2 2 8 3 2 3 8 4 1 1 12 4 1 2 13 4 1 3 15 4 2 1 7 4 2 2 11 4 2 3 13 5 1 1 15 5 1 2 13 5 1 3 14 5 2 1 5 5 2 2 8 5 2 3 12 end data.
Table 25.3, page 557. Analysis of variance from the completely within-subject design, Factor B is nested within Factor A and all observations are completely within-subject.
glm y by a b s /design = a b(a) s a*s /random = b s.
Data from the mixed design, Table 25.1, page 552.
data list list / s a b y. begin data. 1 1 1 13 1 1 2 11 1 1 3 15 2 1 1 16 2 1 2 11 2 1 3 16 3 1 1 13 3 1 2 16 3 1 3 17 4 1 1 13 4 1 2 14 4 1 3 16 5 1 1 13 5 1 2 12 5 1 3 16 6 2 1 7 6 2 2 9 6 2 3 13 7 2 1 9 7 2 2 6 7 2 3 11 8 2 1 7 8 2 2 10 8 2 3 10 9 2 1 9 9 2 2 13 9 2 3 16 10 2 1 8 10 2 2 11 10 2 3 11 end data.
Table 25.3, page 557. Analysis of variance from the mixed design with subjects nested within Factor A, Factor B is nested within Factor A.
glm y by s a b /design = a b(a) s(a) /random = b s.