|
Chapter Contents |
Previous |
Next |
| The TLOGISTIC Procedure |
The CONTRAST statement enables you to specify a matrix L
for testing the hypothesis
.
You must be familiar with the details of the
model parameterization that PROC TLOGISTIC uses
(for more information, see the CODING= option in
the "MODEL Statement" section).
Optionally, the CONTRAST statement enables you to
estimate each row,
, of
and test the
hypothesis
.Computed statistics are based on the asymptotic chi-square
distribution of the Wald statistic.
There is no limit to the number of CONTRAST statements that you can specify, but they must appear after the MODEL statement.
The following parameters are specified in the CONTRAST statement:
The rows of
are specified in order and
are separated by commas.
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.
When you use the full-rank parameterization
(by default, or by specifying CODING=EFFECT),
all parameters are directly estimable
(involve no other parameters).
For example, suppose a CLASS variable A has four
levels. Then there are four parameters (
), of which PROC TLOGISTIC estimates
only the first three. The fourth parameter is related to
the others by the equation



contrast '1 vs. 4' A 2 1 1;
To contrast the third level with the average of the first two levels, you would test


contrast '1&2 vs. 3' A 1 1 -2;
Other CONTRAST statements are constructed similarly. For example,
contrast '1 vs. 2 ' A 1 -1 0;
contrast '1&2 vs. 4 ' A 3 3 2;
contrast '1&2 vs. 3&4' A 2 2 0;
contrast 'Main Effect' A 1 0 0,
A 0 1 0,
A 0 0 1;
When you use the less than full-rank parameterization (by specifying CODING=GLM), each row is checked for estimability. If PROC TLOGISTIC finds a contrast to be nonestimable, it displays missing values in corresponding rows in the results. PROC TLOGISTIC handles missing level combinations of classification variables in the same manner as PROC GLM. 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.
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 (/).
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.