DATA Step, Macro, Functions and more

Stratified analysis to find odd ratios

Posts: 20

Stratified analysis to find odd ratios

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?

Super User
Posts: 23,928

Re: Stratified analysis to find odd ratios

Posted in reply to jessica_join

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. 



Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation