Sie sind auf Seite 1von 4

Stat664

About Expected Mean Squares

The discussions below are for Balanced Multi-Way Mixed-Effects Models.

Unrestricted Models
Any random effect (including any interaction that involves fixed effects) has its elements sampled
from normal population with zero mean. For instance, assuming that j s are random, even if i s
2
).
are fixed, the random variables ()ij s are i.i.d. N (0, AB
The general formula given on page F.9 in classnotes

Variance Components Model


is for unrestricted models (click the link above and then click on 4.1 on the navigation tabs on
the left). That is, no side conditions were imposed on summing over the fixed-effect margins of
random effects. The two examples on page F.10, assuming unrestricted model, follow through
this formula.

Three-Way Unrestricted Mixed-Effects Models


Fixed: A; Random: B, C.
u
A
B
C
AB
AC
BC
ABC
Error

Vu
{B,C,BC}
{A,C,AC}
{A,B,AB}
{C}
{B}
{A}

E[M Su ]
2
2
2
]
+ nABC
+ nbAC
2 + nbckA2 + [ncAB
2
2
2
2
2
+ nacB + [ncAB + naBC + nABC ]
2
2
2
2 + nabC2 + [nbAC
+ naBC
+ nABC
]
2
2
2
+ ncAB + [nABC ]
2
2
]
+ [nABC
2 + nbAC
2
2
2
+ naBC + [nABC
]
2
2
+ nABC
2

Fixed: A, B; Random: C.
u
A
B
C
AB
AC
BC
ABC
Error

Vu
{C,BC}
{C,AC}
{A,B,AB}
{C}
{B}
{A}

E[M Su ]
2
2
2 + nbckA2 + [nbAC
+ nABC
]
2
2
2
2
+ nackB + [naBC + nABC
]
2
2
2
2
2
+ nabC + [nbAC + naBC + nABC
]
2
2
2
+ nckAB + [nABC ]
2
2
2 + nbAC
+ [nABC
]
2
2
2
+ naBC + [nABC ]
2
2 + nABC
2
1

Restricted Models
A restricted model has side conditions imposed on the fixed-effect margins. For the example above,
the random variables ()ij s are no longer independent, though still are normally distributed.
Additional side conditions are imposed on these random variables. One key restriction, among
others (about covariance structure), is that
a
X

()ij = 0, for j = 1, , b.

See the discussion on the two-way restricted model on page F.11 of the abovementioned classnotes
link.

Expected Mean Squares for Restricted Models


The general formula on page F.9 still holds except for the replacement of Vu by Vur :
Vur = {v : v is a pure random effect not involving u}
Note that multi-way random effects model is unaffected by this definition.

Three-Way Restricted Mixed-Effects Models


Fixed: A; Random: B, C.
u
A
B
C
AB
AC
BC
ABC
Error

Vur
{B,C,BC}
{C}
{B}
{C}
{B}

E[M Su ]
2
2
2
]
+ nABC
+ nbAC
2 + nbckA2 + [ncAB
2
2
2
+ nacB + [naBC ]
2
2 + nabC2 + [naBC
]
2
2
2
+ ncAB + [nABC ]
2
2
]
+ [nABC
2 + nbAC
2
2
+ naBC
2
2 + nABC
2

Fixed: A, B; Random: C.
u
A
B
C
AB
AC
BC
ABC
Error

Vur
{C}
{C}

{C}

E[M Su ]
2
2 + nbckA2 + [nbAC
]
2
2
2
+ nackB + [naBC
]
2
2
+ nabC
2
2
2 + nckAB
+ [nABC
]
2
2
+ nbAC
2
2 + naBC
2
2
+ nABC
2
2

MINITAB
By default, MINITAB assumes unrestricted models in both GLM and AOV (Balanced ANOVA)
unless otherwise specified in Options sub-dialog box. The example follows through

Multi-Way ANOVA Model


using bottler example. The original data were obtained from fixed-effects experiment. Its use
here is for illustration only. For convenience, the verbal names of the factors were changed using
more convenient names A, B, and C. For each case of unrestricted/restricted (A fixed, B&C
random)/(A&B fixed, C random), only the table of expected mean squares were retained (note that
MINITAB produced ANOVA table using appropriate error terms, and using Satterthwaite pseudo
F when appropriate).

Fixed: A; Random: B, C
1
2
3
4
5
6
7
8

Source
A
B
C
A*B
A*C
B*C
A*B*C
Error

1
2
3
4
5
6
7
8

Source
A
B
C
A*B
A*C
B*C
A*B*C
Error

Variance
component
3.52083
1.77083
0.52083
-0.06250
0.08333
-0.08333
0.70833
Variance
component
3.69444
1.75000
0.52083
-0.06250
0.05556
-0.08333
0.70833

Error
term
*
*
*
7
7
7
8

Expected Mean Square for Each


(using unrestricted model)
(8) + 2 (7) + 4 (5) + 4 (4) +
(8) + 2 (7) + 6 (6) + 4 (4) +
(8) + 2 (7) + 6 (6) + 4 (5) +
(8) + 2 (7) + 4 (4)
(8) + 2 (7) + 4 (5)
(8) + 2 (7) + 6 (6)
(8) + 2 (7)
(8)

Term

Error
term
*
6
6
7
7
8
8

Expected Mean Square for Each Term


(using restricted model)
(8) + 2 (7) + 4 (5) + 4 (4) + 8 Q[1]
(8) + 6 (6) + 12 (2)
(8) + 6 (6) + 12 (3)
(8) + 2 (7) + 4 (4)
(8) + 2 (7) + 4 (5)
(8) + 6 (6)
(8) + 2 (7)
(8)

Q[1]
12 (2)
12 (3)

Fixed: A, B; Random: C
1
2
3

Source
A
B
C

Variance
component

1.77083

Error
term
5
6
*

Expected Mean Square for Each Term


(using unrestricted model)
(8) + 2 (7) + 4 (5) + Q[1,4]
(8) + 2 (7) + 6 (6) + Q[2,4]
(8) + 2 (7) + 6 (6) + 4 (5) + 12 (3)
3

4
5
6
7
8

1
2
3
4
5
6
7
8

A*B
A*C
B*C
A*B*C
Error

Source
A
B
C
A*B
A*C
B*C
A*B*C
Error

-0.06250
0.08333
-0.08333
0.70833

Variance
component

1.77778
-0.10417
0.05556
-0.08333
0.70833

7
7
7
8

Error
term
5
6
8
7
8
8
8

(8)
(8)
(8)
(8)
(8)

+
+
+
+

2
2
2
2

(7) + Q[4]
(7) + 4 (5)
(7) + 6 (6)
(7)

Expected Mean Square


for Each Term (using
restricted model)
(8) + 4 (5) + 8 Q[1]
(8) + 6 (6) + 12 Q[2]
(8) + 12 (3)
(8) + 2 (7) + 4 Q[4]
(8) + 4 (5)
(8) + 6 (6)
(8) + 2 (7)
(8)

SAS
SAS basically uses unrestricted models in PROCs GLM, MIXED, and VARCOMP. However, users
still have the flexibility to declare appropriate error term in a TEST statement. Note that SAS
sort of advocates unrestricted model form (see Sum-To-Zero Assumption section in the help
documentation of the RANDOM statement in PROC GLM).
Assume that its desired to use unrestricted model. When using RANDOM statement with
TEST option in PROC GLM, SAS does all the tests using appropriate error (pseudo error) terms
and produces the correct output. See

Multi-Way Mixed-Effect Model


for example.
For restricted model, use E = error-term in the TEST statement in PROC GLM. The
error-term must be an effect (one only).

Das könnte Ihnen auch gefallen