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. 

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1099 views
  • 0 likes
  • 2 in conversation