The MODELMATRIX Procedure
EFFECT Statement
EFFECT name=effect-type (variables </ options>);
The EFFECT statement enables you to construct special collections of columns for design matrices. These collections are referred to as constructed effects to distinguish them from the usual model effects that are formed from continuous or classification variables, as discussed in the section GLM Parameterization of Classification Variables and Effects in Chapter 3: Shared Concepts.
You can specify the following effect-types:
- COLLECTION
specifies a collection effect that defines one or more variables as a single effect that has multiple degrees of freedom. The variables in a collection are considered as a unit for purposes of estimation and inference.
- MULTIMEMBER | MM
specifies a multimember classification effect whose levels are determined by one or more variables that appear in a CLASS statement.
- POLYNOMIAL | POLY
specifies a multivariate polynomial effect in the specified numeric variables.
- SPLINE
specifies a regression spline effect whose columns are univariate spline expansions of one or more variables. A spline expansion replaces the original variable with an expanded or larger set of new variables.
Table 13.3 summarizes the options available in the EFFECT statement.
Table 13.3: EFFECT Statement Options
Option | Description |
|---|---|
Collection Effects Option | |
Displays the constituents of the collection effect | |
Multimember Effects Options | |
Displays the levels of the multimember effect | |
Specifies that observations whose levels are all missing for the multimember variables should have values of 0 in the corresponding design matrix columns | |
Standardizes the design matrix entries so that each observation has a sum of 1 | |
Specifies the weight variable for the contributions of each classification effect | |
Polynomial Effects Options | |
Specifies the degree of the polynomial | |
Displays details of the specified polynomial | |
Specifies the maximum degree of any variable in a term of the polynomial | |
Treats the polynomial as a single effect that has multiple degrees of freedom | |
Specifies centering and scaling suboptions for the variables that define the polynomial | |
Spline Effects Options | |
Specifies the type of basis (B-spline basis or truncated power function basis) for the spline effect | |
Uses the extremes of the data as boundary knots for a B-spline basis | |
Specifies the degree of the spline effect | |
Displays the knots and locations for each spline basis function | |
Requests equally spaced right-side boundary knots that start at the variables’ maximum and end at the specified KNOTMAX= value | |
Specifies how to construct the knots for the spline effect | |
Requests equally spaced left-side boundary knots that start at the specified KNOTMIN= value and end at the variables’ minimum value | |
Specifies a natural cubic spline basis for the spline effect | |
Treats the spline basis for each variable as a separate effect when multiple variables are specified | |
Treats each design matrix column as a separate effect | |
For more information about the syntax of these effect-types and how columns of constructed effects are computed, see the section EFFECT Statement in Chapter 3: Shared Concepts.