Next: all4anova() Up: Design Macros Help File Previous: aliases3()   Contents

# all3anova()

Usage:
 ```all3anova(y, a, b, c [,s2:val]), REAL vector y, factors a, b, c of same length as y, REAL scalar val > 0. ```

Keywords: anova
```all3anova(y, a, b, c) fits all hierarchical 3 factor ANOVA models.  y
must be a REAL vector and a, b and c must be factors (created by
factor() or makefactor()) of the same length as y.

For each of the 18 models fit, all3anova() prints the following, in order
of increasing C(p).
p          Number of degrees of freedom in the model, including the
constant term
C(p)       Mallow's Cp statistic
Model      The right hand side of the fitted model using the symbols
a, b and c for the 3 factors

The estimate of variance used in computing C(p) is the error mean square
from the model fitting all factors and their interactions ("y=a*b*c").
Thus this model must not fit perfectly (have zero residual sums of
squares).

all3anova(y, a, b, c, s2:v), where v > 0 is a REAL scalar does the same,
except v is used in computing C(p) instead of the error mean square from
the model fitting all factors and their interactions.

all3anova(y, a, b, c [, s2:v], keep:T) does the same except nothing is
printed.  Instead a structure with the following component is returned:
Component Contents
p        Vector of integers containing p for all the models fit
cp       REAL vector containing C(p) for all the models fit