Chapter Contents |
Previous |
Next |
The CATMOD Procedure |
If specified, the DIRECT statement must precede the MODEL statement. For example,
proc catmod; direct X; model Y=X; run;
Suppose X has five levels. Then the main effect X induces only one column in the design matrix, rather than four. The values inserted into the design matrix are the actual values of X.
You can interactively change the variables declared as DIRECT variables by using the statement without listing any variables. The following statements are valid:
proc catmod; direct X; model Y=X; weight wt; run; direct; model Y=X; run;
The first MODEL statement uses the actual values of X, and the second MODEL statement uses the four variables created when PROC CATMOD generates the design matrix. Note that the preceding statements can be run without a WEIGHT statement if the input data are raw data rather than cell counts.
For more details, see the discussions of main and direct effects in the section "Generation of the Design Matrix".
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.