Data from Table 11.8, page 221
data table11_8; input a b errors; datalines; 1 1 1 1 1 4 1 1 0 1 1 7 2 1 13 2 1 5 2 1 7 2 1 15 3 1 9 3 1 16 3 1 18 3 1 13 1 2 15 1 2 6 1 2 10 1 2 13 2 2 6 2 2 18 2 2 9 2 2 15 3 2 14 3 2 7 3 2 6 3 2 13 ; run;
Table 11.9, page 223. Overall two-factor analysis of variance of the data appearing in Table 11.8
NOTE: Within the model statement, the | expands the factors to all main effects and interactions terms. In this case, a|b expands to a b a*b.
proc glm data = table11_8; class a b; model errors = a|b/ss3 ; run;quit;
The GLM Procedure Class Level Information Class Levels Values a 3 1 2 3 b 2 1 2 Number of observations 24 Dependent Variable: errors Sum of Source DF Squares Mean Square F Value Pr > F Model 5 280.0000000 56.0000000 3.05 0.0361 Error 18 330.0000000 18.3333333 Corrected Total 23 610.0000000 R-Square Coeff Var Root MSE errors Mean 0.459016 42.81744 4.281744 10.00000 Source DF Type III SS Mean Square F Value Pr > F a 2 112.0000000 56.0000000 3.05 0.0721 b 1 24.0000000 24.0000000 1.31 0.2675 a*b 2 144.0000000 72.0000000 3.93 0.0384