Help using Base SAS procedures

Oddsratio statement in proc logistic switching my reference group?

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

Oddsratio statement in proc logistic switching my reference group?

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=Intervention0.3490.2280.535
surveycomp No vs Yes at group=Usual_Care0.5080.3330.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


Accepted Solutions
Solution
‎07-24-2012 12:12 PM
Super User
Posts: 17,959

Re: Oddsratio statement in proc logistic switching my reference group?

Use the DIFF option for the odds ratio statement.

oddsratio surveycomp/diff=ref;

View solution in original post


All Replies
Solution
‎07-24-2012 12:12 PM
Super User
Posts: 17,959

Re: Oddsratio statement in proc logistic switching my reference group?

Use the DIFF option for the odds ratio statement.

oddsratio surveycomp/diff=ref;

New Contributor
Posts: 3

Re: Oddsratio statement in proc logistic switching my reference group?

Thank you! That worked like a charm.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 171 views
  • 0 likes
  • 2 in conversation