BookmarkSubscribeRSS Feed
jessica_join
Obsidian | Level 7
I need a code to find the Odd ratios of individuals stratas. For example my variable is region . I am comparing the effect of region on eczema (my outcome). How do I find the individual crude ORs for each region compared to the outcome?


1 REPLY 1
Reeza
Super User

What does your code currently look like? The example I previously linked you too has the full walk through for a categorical variable. Did you run it and see how it was interpreted?

 

Add your categorical variable to your CLASS statement and then either use the EXPB option (as in the example) or use an ODDSRATIO statement for that variable. 

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1033 views
  • 0 likes
  • 2 in conversation