Hello! I'm trying to produce odds ratios for hospital readmission based upon 22 different categories of disease. I would also like to see the OR for the TOTAL of all disease categories (all 22 added together), and use this as a reference group. I'm not sure how to do this using total as the ref. Any suggestions? Thanks in advance for any assistance.
proc logistic data=index_events descending;
class discat;
model readmit=discat;
weight discwt;
format discat discat.;
run;
I have tried creating an overall category in discat but then all observations fall under overall instead of the 22 other categories. Do you have any additional specific advice on how to do that?
You have to replicate the data, not just recode it.
ie
data all_comparison;
set sashelp.class;
output;
sex='T';
output;
run;
proc freq data=all_comparison;
table sex;
run;
What you want to do can be done using the DIFF=ANOM option in the LSMEANS statement in PROC LOGISTIC. See this note.
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.