|
Chapter Contents |
Previous |
Next |
| The GENMOD Procedure |
The CONTRAST statement provides a means for obtaining a test
for a specified hypothesis concerning the model parameters.
This is accomplished by specifying a matrix L
for testing the hypothesis
.
You must be familiar with the details of the
model parameterization that PROC GENMOD uses.
For more information, see the section "Parameterization Used in PROC GENMOD".
Computed statistics are based on the asymptotic chi-square
distribution of the likelihood ratio statistic, or the
generalized score statistic for GEE models, with
degrees of freedom determined by the number of linearly
independent rows in the L matrix.
You can request Wald chi-square statistics with the
Wald option in the CONTRAST statement.
There is no limit to the number of CONTRAST statements that you can specify, but they must appear after the MODEL statement. Statistics for multiple CONTRAST statements are displayed in a single table.
The following parameters are specified in the CONTRAST statement:
If an effect is not specified in the CONTRAST statement, all of its coefficients in the L matrix are set to 0. If too many values are specified for an effect, the extra ones are ignored. If too few values are specified, the remaining ones are set to 0.
PROC GENMOD handles missing level combinations of classification variables in the same manner as the GLM and MIXED procedures. Parameters corresponding to missing level combinations are not included in the model. This convention can affect the way in which you specify the L matrix in your CONTRAST statement.
If the elements of L are not specified for an effect that contains a specified effect, then the elements of the specified effect are distributed over the levels of the higher-order effect just as the GLM procedure does for its CONTRAST and ESTIMATE statements. For example, suppose that the model contains effects A and B and their interaction A*B. If you specify a CONTRAST statement involving A alone, the L matrix contains nonzero terms for both A and A*B, since A*B contains A.
If you specify the WALD option, the test of hypothesis is based on a Wald chi-square statistic. If you omit the WALD option, the test statistic computed depends on whether an ordinary generalized linear model or a GEE-type model is specified.
For an ordinary generalized linear model, the CONTRAST statement computes the likelihood ratio statistic. This is defined to be twice the difference between the log likelihood of the model unconstrained by the contrast and the log likelihood with the model fitted under the constraint that the linear function of the parameters defined by the contrast is equal to 0. A p-value is computed based on the asymptotic chi-square distribution of the chi-square statistic.
If you specify a GEE model with the REPEATED statement, the test is based on a score statistic. The GEE model is fit under the constraint that the linear function of the parameters defined by the contrast is equal to 0. The score chi-square statistic is computed based on the generalized score function. See the "Generalized Score Statistics" section for more information.
The degrees of freedom is the number of linearly independent constraints implied by the CONTRAST statement, that is, the rank of L.
You can specify the following options after a slash (/).

If you specify a GEE model with the REPEATED statement,
is the empirical covariance matrix
estimate.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.