The default behavior for proc logistic in sas 9.3 has changed as described below:
"If the ODDSRATIO statement or CLODDS= option is specified, the default “Odds Ratio” table is no longer
produced, and only the requested results are displayed."
Any idea why this was done? I have code that used to output the oddsratio table using ods, and the CloddsPL table for another variable. Now the oddsratio table no longer exists when I use the CLODDS= option. Is there a way to get this back?
Specify CLODDS=BOTH. The CloddsWald table contains all the results from the default OR table, and you'll still get your CloddsPL results.
CLODDS and ODDSRATIO add several OR tables, and some complaints rolled in about clutter and it being tough to tell which table came from what. The assumption that anybody specifying CLODDS and/or ODDSRATIO would ignore the default table obviously wasn't quite correct!
It doesn't look like it. The only workaround I see is to specify each term in a separate ODDSRATIO statement, and get what you need from the ODS table OddsRatiosPL.
Good luck,
Steve Denham
Specify CLODDS=BOTH. The CloddsWald table contains all the results from the default OR table, and you'll still get your CloddsPL results.
CLODDS and ODDSRATIO add several OR tables, and some complaints rolled in about clutter and it being tough to tell which table came from what. The assumption that anybody specifying CLODDS and/or ODDSRATIO would ignore the default table obviously wasn't quite correct!
Thanks for the replies.
Another helpful reply that I got from David Schlotzhauer at SAS is to use the default option for units. This results in all variables being given an estimate.
proc logistic desc data = _temp_;
class cat1 cat2;
model outcome = cont1 cat1 cat2 cont2 /clodds=pl;
units cont1 = 20 / default=1;
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.