-
MISSING
-
treats missing values (., ._, .A, …, .Z for numeric variables and blanks for character variables) as valid values for the
CLASS variable.
-
ORDER=DATA | FORMATTED | FREQ | INTERNAL
-
specifies the sort order for the levels of classification variables. This ordering determines which parameters in the model
correspond to each level in the data, so the ORDER= option can be useful when you use the CONTRAST statement. By default,
ORDER=FORMATTED. For ORDER=FORMATTED and ORDER=INTERNAL, the sort order is machine-dependent. When ORDER=FORMATTED is in effect
for numeric variables for which you have supplied no explicit format, the levels are ordered by their internal values.
The following table shows how PROC COUNTREG interprets values of the ORDER= option.
Value of ORDER=
|
Levels Sorted By
|
DATA
|
Order of appearance in the input data set
|
FORMATTED
|
External formatted values, except for numeric variables with no explicit format, which are sorted by their unformatted (internal)
values
|
FREQ
|
Descending frequency count; levels with more observations come earlier in the order
|
INTERNAL
|
Unformatted value
|
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.
-
PARAM=keyword
-
specifies the parameterization method for the classification variable or variables. You can specify any of the keywords shown in the following table; by default, PARAM=GLM.
Design matrix columns are created from CLASS variables according to the corresponding coding schemes:
Value of PARAM=
|
Coding
|
EFFECT
|
Effect coding
|
GLM
|
Less-than-full-rank reference cell coding (this keyword can be used only in a global option)
|
REFERENCE REF
|
Reference cell coding
|
All parameterizations are full rank, except for the GLM parameterization. The REF=
option in the CLASS statement determines the reference level for effect and reference coding and for their orthogonal parameterizations.
It also indirectly determines the reference level for a singular GLM parameterization through the order of levels.
-
REF=’level’ | keyword
-
specifies the reference level for PARAM=
EFFECT, PARAM=
REFERENCE, and their orthogonalizations. When PARAM=
GLM, the REF= option specifies a level of the classification variable to be put at the end of the list of levels. This level
thus corresponds to the reference level in the usual interpretation of the linear estimates with a singular parameterization.
For an individual variable REF= option (but not for a global REF= option), you can specify the level of the variable to use as the reference level. Specify the formatted value of the variable if a format is assigned. For a
global or individual variable REF= option, you can use one of the following keywords. By default, REF=LAST.
- FIRST
-
designates the first-ordered level as reference.
- LAST
-
designates the last-ordered level as reference.