The GLMPOWER Procedure

CONTRAST Statement

CONTRAST ’label’ effect values <…effect values> </ options> ;

The CONTRAST statement enables you to define custom hypothesis tests by specifying an $\mb {L}$ vector or matrix for testing the hypothesis $\mb {L} \bbeta =0$. Thus, to use this feature you must be familiar with the details of the model parameterization used in PROC GLM. For more information, see the section Parameterization of PROC GLM Models of Chapter 42: The GLM Procedure. All of the elements of the $\mb {L}$ vector can be given, or if only certain portions of the $\mb {L}$ vector are given, the remaining elements are constructed by PROC GLMPOWER from the context (in a manner similar to rule 4 discussed in the section Construction of Least Squares Means of Chapter 42: The GLM Procedure,).

There is no limit to the number of CONTRAST statements you can specify. Each sample size analysis includes tests for all CONTRAST statements.

In the CONTRAST statement,

label

identifies the contrast on the output. A label is required for every contrast specified. Labels must be enclosed in quotes.

effect

identifies an effect that appears in the MODEL statement, or the INTERCEPT effect. You do not need to include all effects that are in the MODEL statement.

values

are constants that are elements of the $\mb {L}$ vector associated with the effect.

You can specify the following option in the CONTRAST statement after a slash (/):

SINGULAR=number

tunes the estimability checking. If ABS$(\mb {L}-\mb {LH}) > C\times $number for any row in the contrast, then $\mb {L}$ is declared nonestimable. $\mb {H}$ is the $(\mb {X}’\mb {X})^{-}\mb {X}’\mb {X}$ matrix, and C is ABS$(\mb {L})$ except for rows where $\mb {L}$ is zero, and then it is 1. The default value for the SINGULAR= option is $10^{-4}$. Values for the SINGULAR= option must be between 0 and 1.

The CONTRAST statement enables you to perform custom hypothesis tests. If the hypothesis is estimable, then the sum of squares due to it, SS($H_0\colon \mathbf{L} \bbeta =0$), is computed as

\[  (\mb {Lb})^{\prime }(\mb {L}(\mb {X^{\prime }X})^{-} \mb {L}^{\prime })^{-1}(\mb {Lb})  \]

where $\mb {b}=(\mb {X^{\prime }X})^{-}\mb {X^{\prime }y}$ is the estimated solution vector.

The degrees of freedom associated with the hypothesis are equal to the row rank of $\mb {L}$. The sum of squares computed in this situation is equivalent to the sum of squares computed using an $\mb {L}$ matrix with any row deleted that is a linear combination of previous rows.

Multiple-degrees-of-freedom hypotheses can be specified by separating the rows of the $\mb {L}$ matrix with commas.