BookmarkSubscribeRSS Feed
jessica_join
Obsidian | Level 7

Need crude and adjusted odd ratios with the CIs

I have a project where I have to do a data analysis of a cross sectional study looking at a minimum of 4 confounders and 1 effect modifier on top of the exposure using SAS.

I am supposed to run a proc logistic on this to give crude and adjusted odd ratios . My issue is that the variables all have multiple levels such as my exposure is regions. How do I get the Odd ratio for each individual region? My effect modifier is sex, how do I get the individual OR for male and female?

 

Please help! I am so bad at SAS and I need to get the data before I can complete the rest of my project.

 

3 REPLIES 3
Reeza
Super User

Use the oddsratio statement. Check out this example - run the code too! 

http://documentation.sas.com/?docsetId=statug&docsetTarget=statug_logistic_examples02.htm&docsetVers...

 

With one note: set param=REF on your CLASS statement. 

 

If if you’re still uncertain post back with specific questions and your code. 

jessica_join
Obsidian | Level 7
Thank you! But how would I do a stratified analysis to find the individual ORs for each group compared to the outcome?
Reeza
Super User

Do you want stratified logistic regression or are you looking for something like: Men are 1.3X more likely to die before 80 than women?

Stratification is a different process and then you would include that variable in your STRATA statement. 

 

Otherwise, the oddsratio is the number you're looking for here. 

 

 

 

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 7233 views
  • 0 likes
  • 2 in conversation