REPEATED factor-specification </ options>;
When values of the dependent variables in the MODEL statement represent repeated measurements on the same experimental unit, the REPEATED statement enables you to test hypotheses about the measurement factors (often called within-subject factors), as well as the interactions of within-subject factors with independent variables in the MODEL statement (often called between-subject factors). The REPEATED statement provides multivariate and univariate tests as well as hypothesis tests for a variety of single-degree-of-freedom contrasts. There is no limit to the number of within-subject factors that can be specified. For more details, see the section Repeated Measures Analysis of Variance in Chapter 46: The GLM Procedure.
The REPEATED statement is typically used for handling repeated measures designs with one repeated response variable. Usually, the variables on the left-hand side of the equation in the MODEL statement represent one repeated response variable.
This does not mean that only one factor can be listed in the REPEATED statement. For example, one repeated response variable (hemoglobin count) might be measured 12 times (implying variables Y1 to Y12 on the left-hand side of the equal sign in the MODEL statement), with the associated within-subject factors treatment and time (implying two factors listed in the REPEATED statement). See the section Examples for an example of how PROC ANOVA handles this case.
Designs with two or more repeated response variables can, however, be handled with the IDENTITY transformation; see Example 46.9 in Chapter 46: The GLM Procedure, for an example of analyzing a doubly-multivariate repeated measures design.
When a REPEATED statement appears, the ANOVA procedure enters a multivariate mode of handling missing values. If any values for variables corresponding to each combination of the within-subject factors are missing, the observation is excluded from the analysis.
The simplest form of the REPEATED statement requires only a factor-name. With two repeated factors, you must specify the factor-name and number of levels (levels) for each factor. Optionally, you can specify the actual values for the levels (level-values), a transformation that defines single-degree-of freedom contrasts, and options for additional analyses and output. When more than one within-subject factor is specified, factor-names (and associated level and transformation information) must be separated by a comma in the REPEATED statement. These terms are described in the following section, "Syntax Details."
Table 26.5 summarizes the options available in the REPEATED statement.
Table 26.5: PROC REPEATED Statement Options
Option |
Description |
---|---|
Performs a canonical analysis of the and matrices |
|
Specifies the method of evaluating the multivariate test statistics |
|
Displays only the results of the univariate analyses |
|
Displays only the results of the multivariate analyses |
|
Displays the matrix |
|
Displays the (SSCP) matrix |
|
Displays the transformation matrices that define the contrasts |
|
Produces the characteristic roots and vectors |
|
Produces analysis-of-variance tables for each contrast |
|
Specifies the univariate F test adjustment |
You can specify the following terms in the REPEATED statement.
For examples of the transformation matrices generated by these contrast transformations, see the section Repeated Measures Analysis of Variance in Chapter 46: The GLM Procedure.
You can specify the following options in the REPEATED statement after a slash:
When specifying more than one factor, list the dependent variables in the MODEL
statement so that the within-subject factors defined in the REPEATED statement are nested; that is, the first factor defined
in the REPEATED statement should be the one with values that change least frequently. For example, assume that three treatments
are administered at each of four times, for a total of twelve dependent variables on each experimental unit. If the variables
are listed in the MODEL
statement as Y1
through Y12
, then the following REPEATED statement
repeated trt 3, time 4;
implies the following structure:
Dependent Variables |
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
Value of |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
3 |
3 |
3 |
3 |
Value of |
1 |
2 |
3 |
4 |
1 |
2 |
3 |
4 |
1 |
2 |
3 |
4 |
The REPEATED statement always produces a table like the preceding one.
For more information about repeated measures analysis and about using the REPEATED statement, see the section Repeated Measures Analysis of Variance in Chapter 46: The GLM Procedure.