A company ran an experiment to see how several conditions affect the thickness of a coating substance that it manufactures. The experiment was run at two different times, in the morning and in the afternoon. Three operators were chosen from a large pool of operators employed by the company. The manufacturing process was run at three settings, 35, 44, and 52. Two determinations of thickness were made by each operator at each time and setting. Thus, the three factors are crossed. One factor, operator, is random; the other two, time and setting, are fixed.
The statistical model is:
Yijkl = m + Ti + Oj + Sk + TOij + TSik + OSjk + TOSijk + eijkl,
where Ti is the time effect, Oj is the operator effect, and Sk is the setting effect, and TOij, TSik, OSjk, and TOSijk are the interaction effects.
Operator, all interactions with operator, and error are random. The random terms are:
Oj TOij OSjk TOSijk eijkl
These terms are all assumed to be normally distributed random variables with mean zero and variances given by
|
|
var (Oj) = V(O) |
var (TOij) = V(TO) |
|
|
var (TOSjkl) = V(TOS) |
var (eijkl) = V(e) = s2 |
These variances are called variance components. The output from expected means squares contains estimates of these variances.
In the unrestricted model, all these random variables are independent. The remaining terms in this model are fixed.
In the restricted model, any term which contains one or more subscripts corresponding to fixed factors is required to sum to zero over each fixed subscript. In the example, this means:

Your choice of model does not affect the sums of squares, degrees of freedom, mean squares, or marginal and cell means. It does affect the expected mean squares, error term for the F-tests, and the estimated variance components.
Step 1: Fit the restricted form of the model
1 Open the worksheet EXH_AOV.MTW.
2 Choose Stat > ANOVA > Balanced ANOVA.
3 In Responses, enter Thickness.
4 In Model, enter Time | Operator | Setting.
5 In Random Factors, enter Operator.
6 Click Options. Check Use the restricted form of the mixed model. Click OK.
7 Click Results. Check Display expected mean squares and variance components.
8 Click OK in each dialog box.
Step 2: Fit the unrestricted form of the model
1 Repeat steps 1-8 above except that, in 6, uncheck Use the restricted form of the mixed model.
Session window output for restricted case
ANOVA: Thickness versus Time, Operator, Setting
Factor Type Levels Values Time fixed 2 1, 2 Operator random 3 1, 2, 3 Setting fixed 3 35, 44, 52
Analysis of Variance for Thickness
Source DF SS MS F P Time 1 9.0 9.0 0.29 0.644 Operator 2 1120.9 560.4 165.38 0.000 Setting 2 15676.4 7838.2 73.18 0.001 Time*Operator 2 62.0 31.0 9.15 0.002 Time*Setting 2 114.5 57.3 2.39 0.208 Operator*Setting 4 428.4 107.1 31.61 0.000 Time*Operator*Setting 4 96.0 24.0 7.08 0.001 Error 18 61.0 3.4 Total 35 17568.2
S = 1.84089 R-Sq = 99.65% R-Sq(adj) = 99.32%
Expected Mean Square Variance Error for Each Term (using Source component term restricted model) 1 Time 4 (8) + 6 (4) + 18 Q[1] 2 Operator 46.421 8 (8) + 12 (2) 3 Setting 6 (8) + 4 (6) + 12 Q[3] 4 Time*Operator 4.602 8 (8) + 6 (4) 5 Time*Setting 7 (8) + 2 (7) + 6 Q[5] 6 Operator*Setting 25.931 8 (8) + 4 (6) 7 Time*Operator*Setting 10.306 8 (8) + 2 (7) 8 Error 3.389 (8) |
Session window output for unrestricted case
ANOVA: Thickness versus Time, Operator, Setting
Factor Type Levels Values Time fixed 2 1, 2 Operator random 3 1, 2, 3 Setting fixed 3 35, 44, 52
Analysis of Variance for Thickness
Source DF SS MS F P Time 1 9.0 9.0 0.29 0.644 Operator 2 1120.9 560.4 4.91 0.090 x Setting 2 15676.4 7838.2 73.18 0.001 Time*Operator 2 62.0 31.0 1.29 0.369 Time*Setting 2 114.5 57.3 2.39 0.208 Operator*Setting 4 428.4 107.1 4.46 0.088 Time*Operator*Setting 4 96.0 24.0 7.08 0.001 Error 18 61.0 3.4 Total 35 17568.2
x Not an exact F-test.
S = 1.84089 R-Sq = 99.65% R-Sq(adj) = 99.32%
Variance Error Expected Mean Square for Each Term Source component term (using unrestricted model) 1 Time 4 (8) + 2 (7) + 6 (4) + Q[1,5] 2 Operator 37.194 * (8) + 2 (7) + 4 (6) + 6 (4) + 12 (2) 3 Setting 6 (8) + 2 (7) + 4 (6) + Q[3,5] 4 Time*Operator 1.167 7 (8) + 2 (7) + 6 (4) 5 Time*Setting 7 (8) + 2 (7) + Q[5] 6 Operator*Setting 20.778 7 (8) + 2 (7) + 4 (6) 7 Time*Operator*Setting 10.306 8 (8) + 2 (7) 8 Error 3.389 (8)
* Synthesized Test.
Error Terms for Synthesized Tests
Synthesis of Source Error DF Error MS Error MS 2 Operator 3.73 114.1 (4) + (6) - (7) |
The organization of the output is the same for restricted and unrestricted models: a table of factor levels, the analysis of variance table, and as requested, the expected mean squares. The differences in the output are in the expected means squares and the F-tests for some model terms. In this example, the F-test for Operator is synthesized for the unrestricted model because it could not be calculated exactly.
Examine the 3 factor interaction, Time*Operator*Setting. The F-test is the same for both forms of the mixed model, giving a p-value of 0.001. This implies that the coating thickness depends upon the combination of time, operator, and setting. Many analysts would go no further than this test. If an interaction is significant, any lower order interactions and main effects involving terms of the significant interaction are not considered meaningful.
Let's examine where these models give different output. The Operator*Setting F-test is different, because the error terms are Error in the restricted case and Time*Operator*Setting in the unrestricted case, giving p-values of < 0.0005 and 0.088, respectively. Likewise, the Time*Operator differs for the same reason, giving p-values of 0.002 and 0.369, respectively, for the restricted and unrestricted cases, respectively. The estimated variance components for Operator, Time*Operator, and Operator*Setting also differ.
Free online chart generators for statistical analysis:
Useful tools: