The CLASS statement causes variable to be treated as a categorical variable in the analysis. These variables enter the analysis not through their values but
through levels to which the unique values are mapped. For more information about these mappings, see the section Levelization of Classification Variables in SAS/STAT 14.1 User's Guide: High-Performance Procedures.
Multiple CLASS statements are supported.
Note: All class levels are padded or truncated to 32 characters.
By default, PROC HPSPLIT treats variables as categorical variables whose order is specified by the ORDER= option.
You can specify the following var-options:
-
DESC
DESCENDING
-
reverses the sort order of the classification variable. If you specify both the DESCENDING and ORDER=
options, PROC HPSPLIT orders the categories according to the ORDER= option and then reverses that order.
-
ORDER=ordering
-
specifies the sort order for the levels of classification variables. By default, ORDER=FORMATTED except for numeric CLASS
variables that have no specified format, for which ORDER=INTERNAL is the default. You can specify the following values:
- FORMATTED
-
orders values in ascending order of the formatted value.
- INTERNAL
-
orders values in ascending order of the unformatted value.
You can specify the following class-options:
-
DESC
DESCENDING
-
reverses the sort order of the classification variable. If you specify both the DESCENDING and ORDER=
options, PROC HPSPLIT orders the categories according to the ORDER= option and then reverse that order.
-
ORDER=ordering
-
specifies the sort order for the levels of classification variables. By default, ORDER=FORMATTED except for numeric CLASS
variables that have no specified format, for which ORDER=INTERNAL is the default. You can specify the following values:
- FORMATTED
-
orders values in ascending order of the formatted value.
- INTERNAL
-
orders values in ascending order of the unformatted value.
-
UPCASE
-
uppercases the values of character-valued CLASS variables before levelizing them. For example, if the UPCASE option is in
effect and a CLASS variable can take the values 'a', 'A', and 'b', then 'a' and 'A' represent the same level and the CLASS
variable is treated as having only two values: 'A' and 'B'.