CONTRAST ’label’ effect values <…effect values> </ options>;
The CONTRAST statement enables you to perform custom hypothesis tests by specifying an vector or matrix for testing the univariate hypothesis or the multivariate hypothesis . Thus, to use this feature you must be familiar with the details of the model parameterization that PROC GLM uses. For more information, see the section Parameterization of PROC GLM Models. All of the elements of the vector might be given, or if only certain portions of the vector are given, the remaining elements are constructed by PROC GLM from the context (in a manner similar to rule 4 discussed in the section Construction of Least Squares Means).
There is no limit to the number of CONTRAST statements you can specify, but they must appear after the MODEL statement. In addition, if you use a CONTRAST statement and a MANOVA , REPEATED , or TEST statement, appropriate tests for contrasts are carried out as part of the MANOVA , REPEATED , or TEST analysis. If you use a CONTRAST statement and a RANDOM statement, the expected mean square of the contrast is displayed. As a result of these additional analyses, the CONTRAST statement must appear before the MANOVA , REPEATED , RANDOM , or TEST statement.
In the CONTRAST statement,
identifies the contrast on the output. A label is required for every contrast specified. Labels must be enclosed in quotes.
identifies an effect that appears in the MODEL statement, or the INTERCEPT effect. The INTERCEPT effect can be used when an intercept is fitted in the model. You do not need to include all effects that are in the MODEL statement.
are constants that are elements of the vector associated with the effect.
You can specify the following options in the CONTRAST statement after a slash (/).