@spynish29 wrote:
Hi Kurt,
the macro basically calls and reruns the logistic regression post removing some insignificant variables (so the dataset in question is capturing all removed variables) the logistic reruns after removal of variables and then it overwrites the earlier removed variables in the dataset with the ones that have been removed at last.
hope im making sense here ..
Perhaps you might want to examine the options in Proc Logistic (or most of the regression procs) about variable SELECTION option and related options such as DETAILS on the model statement that provides output about the steps of the selection process and effects.
Spend some time working with just the proc logistic code before delving into macro code to duplicate what the programmers at SAS have likely already implemented.
This may require actually writing code as I am not sure that every single option combination is available in a point and click task.
... View more