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.
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.
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
Could you please attach a paper, or tell which paper it is that you got the picture from?
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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.