Syntax: ANOVA Procedure

The following statements are available in PROC ANOVA.

PROC ANOVA <options> ;
CLASS variables </ option> ;
MODEL dependents=effects </ options> ;
ABSORB variables ;
BY variables ;
FREQ variable ;
MANOVA <test-options></ detail-options> ;
MEANS effects </ options> ;
REPEATED factor-specification </ options> ;
TEST <H=effects> E=effect ;

The PROC ANOVA, CLASS, and MODEL statements are required, and they must precede the first RUN statement. The CLASS statement must precede the MODEL statement. If you use the ABSORB, FREQ, or BY statement, it must precede the first RUN statement. The MANOVA, MEANS, REPEATED, and TEST statements must follow the MODEL statement, and they can be specified in any order. These four statements can also appear after the first RUN statement.

Table 24.1 summarizes the function of each statement (other than the PROC statement) in the ANOVA procedure:

Table 24.1 Statements in the ANOVA Procedure

Statement

Description

ABSORB

absorbs classification effects in a model

BY

specifies variables to define subgroups for the analysis

CLASS

declares classification variables

FREQ

specifies a frequency variable

MANOVA

performs a multivariate analysis of variance

MEANS

computes and compares means

MODEL

defines the model to be fit

REPEATED

performs multivariate and univariate repeated measures analysis of variance

TEST

constructs tests that use the sums of squares for effects and the error term you specify