Invalid reference value error when specifying reference level for a CLASS variable


This error can occur when the REF= option is used in the CLASS statement in a modeling procedure. The most common reasons for the occurrence of this error are:

Note that using PROC FREQ to produce a one-way table of the CLASS variable or a two-way table of the CLASS and response variables does not assess the last issue above. This is because a such tables ignore the other variables involved in the model. PROC FREQ will use all non-missing observations to produce those tables, unaware that many additional observations must first be ignored due to missing or invalid values in other variables.