specifies the sort order for the levels of classification variables. This
affects the ordering of the populations, responses, and parameters, as well as the definitions of the parameters. The default,
ORDER=INTERNAL, orders the variable levels by their unformatted values (for example, numeric order or alphabetical order).
The following table shows how PROC CATMOD interprets values of the ORDER= option.
Value of ORDER=
|
Levels Sorted By
|
DATA
|
Order of appearance in the input data set
|
FORMATTED
|
External formatted value, except for numeric variables with no explicit format, which are sorted by their unformatted (internal)
value
|
FREQ
|
Descending frequency count; levels with the most observations come first in the order
|
INTERNAL
|
Unformatted value
|
By default, ORDER=INTERNAL. For ORDER=FORMATTED and ORDER=INTERNAL, the sort order is machine dependent. See the section Ordering of Populations and Responses for more information and examples. 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.