BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fetterbug
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Use the DIFF option for the odds ratio statement.

oddsratio surveycomp/diff=ref;

View solution in original post

2 REPLIES 2
Reeza
Super User

Use the DIFF option for the odds ratio statement.

oddsratio surveycomp/diff=ref;

fetterbug
Calcite | Level 5

Thank you! That worked like a charm.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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