- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I wanted to display my Odds Ratio estimates/ Wale Confidence Limits in descending order. Currently my plots look scattered like this with the following code:
proc logistic data=libraryname.test plots=(oddsratio) ;
class race (ref="1") /param=ref;
model outcomevar (event="Yes") =race;
run;
I want the plots to display in order like this:
I am not sure if it's possible but if it is, what statement I should use and where? I thought there would be something for the model or plot statements but nothing I've tried has worked.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! I will have to keep this in mind as an option. I ended up using the following solution and it worked for what I needed 🙂
Thank you for helping out 🙂
proc logistic data=libraryname.test plots=ODDSRATIO(ORDER=DESCENDING) ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Apply a format to your RACE levels so that they are in the desired order when sorted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! I will have to keep this in mind as an option. I ended up using the following solution and it worked for what I needed 🙂
Thank you for helping out 🙂
proc logistic data=libraryname.test plots=ODDSRATIO(ORDER=DESCENDING) ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Mark your solution as the solution, so that curious users can see it marked as solved.
Editted note: I think you just eliminated half the value of my comment. Yes, your topic is marked as solved, but I expected you to indicate it was your own reported use of ODDSRATIO(ORDER=DESCENDING) as the solution, rather than this comment.
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set
Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets
--------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Sorry about that, I was having technical issues because I opened this up through my phone. Should be fixed now 🙂