Hi everyone! Hope my title makes sense! I'm trying to build a code using forward selection process that has a multinomial response variable! I tried using proc glmselect and proc hpgenselect, but I get error messages since my response variable isn't numeric.
I'm looking to determine how likely people are going to visit a hospital based on variables such as education, work, income, etc. The visit hospital variable has 5 categories (none, most likely none, neutral, most likely yes, yes).
Let me know if it's even possible at all! And what other method I should use! Thanks!
proc hpgenselect data=factorshospital;
class education_cat(ref="0") work_cat(ref="0");
model visits_cat = education_cat work_cat;
selection method=forward;
run;
Here is the log of the error
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
68
69 proc glmselect data=factorshospital;
70 class education_cat(ref="0") work_cat(ref="0");
71 model visits_cat = education_cat work_cat
ERROR: Variable visits_cat in list does not match type prescribed for this list.
72 / selection=forward;
73 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE GLMSELECT used (Total process time):
... View more