I would like to run an ordinal logistic regression using either PROC LOGISTIC or PROC GENMOD in SAS, I have difficulty in programming the variable selection step, here is the variable selection method:
Add one variable to this model at a time, track the AIC score of that individual predictor, and then proceed to the next stage by adding another variable, track the AIC score, select model with lowest AIC, and so forth.
I don't know how to write a loop to run this selection procedure, also, how to get the AIC score for each step (output option?)?
Many thanks!