- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello,everyone! I need to do logistic regression on my data,but the client offered me more than 20 variables. I'm pretty sure that some of them are not necessary. But how to remove them? Is there one stepwise method, just like proc reg, for proc logistic?
Anyone could help me out?
Thanks!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Yes, there is a SELECTION= option in the MODEL statement within PROC LOGISTIC. The methods available are BACKWARD, FORWARD, STEPWISE and SCORE. Check out the SAS documentation below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Yes, there is a SELECTION= option in the MODEL statement within PROC LOGISTIC. The methods available are BACKWARD, FORWARD, STEPWISE and SCORE. Check out the SAS documentation below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Great! I'll give one try. Thanks, Keith!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Mike,
Before you get too far with stepwise selection, you might want to read the paper by Peter Flom and David Cassell on "Stopping Stepwise." It is at
http://www.nesug.org/proceedings/nesug07/sa/sa07.pdf
If the link isn't clickable, paste it into your browser. There have been several presentations regarding the use of the LASSO method in PROC GLMSELECT to get a reasonable model, even for non-normally distributed response variables.
Good luck.
Steve Denham
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve, thanks for the reference. I wish the equivalent of GLMSELECT was available for logistic regression. It would save me a lot of work! - PG
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
One more question.
How to output the odds value for every observation to one dataset?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure if you can output the odds, however you can output the estimated probability (from which you could easily calculate the odds)
proc logistic data=sashelp.class;
output out=test predicted=prob;
model sex= age height weight;
run;