Skip to content

lm type of sums of squares

1 message · Liaw, Andy

#
anova.lm() gives the sequential tests:
Analysis of Variance Table

Response: y
          Df Sum Sq Mean Sq F value Pr(>F)
x1         1 1.1483  1.1483  2.0943 0.1911
x2         1 0.4972  0.4972  0.9068 0.3727
Residuals  7 3.8383  0.5483
Analysis of Variance Table

Response: y
          Df Sum Sq Mean Sq F value Pr(>F)
x2         1 0.5165  0.5165  0.9419 0.3641
x1         1 1.1291  1.1291  2.0592 0.1944
Residuals  7 3.8383  0.5483               

The SS, F-stat, etc. would be invariant to order only if the terms are
orthogonal.


Andy