- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello SAS users,
Can anyone help me figure out why i'm not getting a SAS dataset containing the odds ratio in this code? I used the OD Output statement as i was modelling off from this paper below....but the OD OUTPUT statement in mine did not create the Odds Ratio output.
Here's my code
proc logistic data =newnsch3c; class smokes(Ref= '0') composite (ref='0')/param=glm ; Model asthma (event ='1') = smokes composite smokes*composite; ODS OUTPUT PARAMETERESTIMATES=lgsparms ODDSRATIOS=lgsodds; BY _Imputation_; run;
Please any help will be appreciated.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
when you have an interaction involving all the main effects in the model, the odds ratios are not reported by default. Instead you need to use the ODDSRATIO statement to request the specific odds ratios you are interested in.
The link below has a good discussion of how to report and request odds ratios when you have an interaction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Without seeing the log, and maybe the dataset newnsch3c, I'm not too sure why you aren't getting any odds ratios. I suspect it has something to do with what you did earlier in PROC MI to generate the dataset, so perhaps you could share that code.
SteveDenham
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Could you please attach a paper, or tell which paper it is that you got the picture from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
when you have an interaction involving all the main effects in the model, the odds ratios are not reported by default. Instead you need to use the ODDSRATIO statement to request the specific odds ratios you are interested in.
The link below has a good discussion of how to report and request odds ratios when you have an interaction.