specifies the sort order for the levels of the response variable. You can specify the following values for order-type:
-
DATA
-
sorts the levels by order of appearance in the input data set.
-
FORMATTED
-
sorts the levels by external formatted value, except for numeric variables with no explicit format, which are sorted by their
unformatted (internal) value.
-
FREQ
-
sorts the levels by descending frequency count; levels with the most observations come first in the order.
-
INTERNAL
-
sorts the levels by unformatted value.
-
FREQDATA
-
sorts the levels by order of descending frequency count, and within counts by order of appearance in the input data set when
counts are tied.
-
FREQFORMATTED
-
sorts the levels by order of descending frequency count, and within counts by formatted value (as above) when counts are tied.
-
FREQINTERNAL
-
sorts the levels by order of descending frequency count, and within counts by unformatted value when counts are tied.
When ORDER=FORMATTED (the default) for numeric variables for which you have supplied no explicit format (that is, for which
there is no corresponding FORMAT statement in the current PROC HPFMM run or in the DATA step that created the data set), the
levels are ordered by their internal (numeric) value. If you specify the ORDER= option in the MODEL statement and the ORDER=
option in the CLASS
statement, the former takes precedence.
By default, ORDER=FORMATTED. For the FORMATTED and INTERNAL values, the sort order is machine-dependent.
For more information about sort order, see the chapter on the SORT procedure in the Base SAS Procedures Guide and the discussion of BY-group processing in
SAS Language Reference: Concepts.