Hey there,
I am using the following code to test an interaction with PROC LOGISTIC:
proc logistic data=aim1;
class group (param=ref ref='Usual_Care') surveycomp (param=ref ref='No');
model init1stapp (event='Yes')= group surveycomp group*surveycomp/expb lackfit;
oddsratio surveycomp;
run;
When the Wald Odds Ratio table is produced, the reference group for surveycomp = "Yes".
surveycomp No vs Yes at group=Intervention | 0.349 | 0.228 | 0.535 |
surveycomp No vs Yes at group=Usual_Care | 0.508 | 0.333 | 0.776 |
I'd prefer the reference group be the same as in the class statement (surveycomp = "No"). Is there a way to specify this in the ODDSRATIO statement?
Thanks so much!
-J
Use the DIFF option for the odds ratio statement.
oddsratio surveycomp/diff=ref;
Use the DIFF option for the odds ratio statement.
oddsratio surveycomp/diff=ref;
Thank you! That worked like a charm.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.