VARREDUCE Procedure

CLASS Statement

  • CLASS variable <(options)>…<variable <(options)>> </ global-options>;

The CLASS statement names the classification variables to be used as explanatory variables in the analysis. The CLASS statement must precede the REDUCE statement.

The VARREDUCE procedure supports the GLM method of CLASS variable parameterization; for more information, see the section GLM Parameterization of Classification Variables and Effects.

You can specify options either as individual variable options, by enclosing the options in parentheses after the variable name, or as global-options, by placing them after a slash (/). Global-options are applied to all variables that are specified in the CLASS statement. If you specify more than one CLASS statement, the global-options that are specified in any one CLASS statement apply to all CLASS statements. However, individual CLASS variable options override the global-options.

Table 2 summarizes the values you can use for either an option or a global-option. The options are described in detail in the list that follows Table 2.

Table 2: CLASS Statement Options

Option Description
DESCENDING Reverses the sort order
MISSING Treats missing values as valid levels


DESCENDING
DESC

reverses the sort order of the classification variable.

MISSING

treats missing values (".", ".A", …, ".Z" for numeric variables and blanks for character variables) as valid values for the CLASS variable.

If you do not specify the MISSING option, observations that have missing values for CLASS variables are removed from the analysis.

Last updated: September 22, 2026