05-23-2016 08:40 PM
I am trying to figure out how to create SAS macro that would possibly loop run logistic regression model multiple times (full model, n-1 predictor models), save the individual probabilities to find out which influential predictors at the observation level
05-23-2016 10:22 PM
What part do you need help with?
You need to provide more detail of what you're looking for, specifically what you want to capture in each run.
Also, I'm about 75% sure this has been asked on here already and there's a full solution available, I think from Ksharp. I'm not in the mood to search though.
You can also search at Lexjansen.com which will have solutions for this as well.
05-23-2016 10:44 PM
My question is two fold:
05-23-2016 10:49 PM
1. I have no idea, someone else will be able to answer that I haven't heard of this method, but I tend to do more programming than statistics these days.
2. No, there's no automated method for what you're looking for, however SAS does have several different methods for determined the best model, ie stepwise, forward, backwards, score. See the documentation. Additionally PROC GLMSELECT can be used which supports futher model selection methods.
05-23-2016 11:20 PM
I am not looking to build the best model. I have done that part already. Next step is to give the scored data back to the requester so they can use it for the focused interventions. In addition to the predicted value (i.e. score), I would like to say that customer XYZ's score is largely driven by variable1, variable5, and variable10.
05-24-2016 09:41 AM
Since the response is the probablility, wouldn't the standardized regression coefficients tell you the relative contributions of the IV's? I say the standardized coefficients since the IV's may be measured on very different scales.
05-31-2016 08:53 AM
I'm afraid this doesn't make sense to me this morning. Relative importance depends on the whole dataset. Perhaps I am missing some key point in your question.