I normally run statistics through a GUI in Enterprise Guide (EG). It uses various macros. For whatever reason its ordered logistic regression never runs. I get errors like the following:
ERROR: There are no valid observations.
When I run the following for the same data (it is in the work file noted) it runs. But I was not sure if I was using the right code below for ordered logistic regression.
PROC LOGISTIC DATA=WORK.HLOG3
;
MODEL Q42 (DESCENDING)=DQ1 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15 DQ16 DQ17 DQ18 DQ19 DQ2 DQ20 DQ21 DQ22 DQ23 DQ24 DQ25 DQ26 DQ27 DQ28 DQ29 DQ3 DQ30 DQ31 DQ32 DQ33 DQ34 DQ35 DQ36 DQ37 DQ38 DQ39 DQ4 DQ40 DQ41 DQ5 DQ6 DQ7 DQ8 DQ9 /
SELECTION=NONE
LINK=LOGIT
;
RUN;
ERROR: There are no valid observations.
When I run the following for the same data (it is in the work file noted) it runs. But I was not sure if I was using the right code below for ordered logistic regression.
PROC LOGISTIC DATA=WORK.HLOG3
;
MODEL Q42 (DESCENDING)=DQ1 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15 DQ16 DQ17 DQ18 DQ19 DQ2 DQ20 DQ21 DQ22 DQ23 DQ24 DQ25 DQ26 DQ27 DQ28 DQ29 DQ3 DQ30 DQ31 DQ32 DQ33 DQ34 DQ35 DQ36 DQ37 DQ38 DQ39 DQ4 DQ40 DQ41 DQ5 DQ6 DQ7 DQ8 DQ9 /
SELECTION=NONE
LINK=LOGIT
;
RUN;