The HPREDUCE Procedure
REDUCE Statement
REDUCE UNSUPERVISED effects </ reduce-options>;
PROC HPREDUCE can be used for both supervised and unsupervised variable selection. In unsupervised case, the REDUCE statement specifies the effects to be considered in the variable selection process. An effect can be an original variable in the input data set or a variable constructed from the original variables. In the supervised case, you need to specify both the effects and the response variables. A response variable can be an original variable in the input data set or a variable constructed from the original variables. For the regression case, you can specify more than one response variable.
Table 2 summarizes the reduce-options, which control the number of variables to be selected.
Table 2: reduce-options
| Option | Description |
|---|---|
| AIC | Performs model selection by using Akaike’s information criterion |
| AICC | Performs model selection by using the corrected Akaike’s information criterion |
| BIC | Perform model selection by using Schwarz Bayesian information criterion |
| MAXSTEPS= | Specifies the maximum number of steps to take; the number must be greater than or equal to 1 |
| MAXEFFECTS= | Specifies the number of effects to select; the number must be greater than or equal to 1. |
| VARIANCEEXPLAINED | VAREXP= | Specifies the fraction of the total variance to be explained; the value must be between 0 and 1. |
| MINVARIANCEINCREMENT | VARINC= | Specifies the minimum increment of explained variance (in a fraction of the total variance); the value must be between 0 and 1. |
The reduce-options determine the number of variables to be selected. You can specify the following reduce-options as stopping criteria for the HPREDUCE procedure. When you specify more than one option, PROC HPREDUCE stops whenever one of the specified options is satisfied, or when the explained variance equals to the total variance. In the latter case, the procedure prints the following message in the log: "Early stop: the proportion of the explained variance to the total variance equals 1."