Programming the statistical procedures from SAS

Logistic Regression: Odds ratio at specific values question

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Logistic Regression: Odds ratio at specific values question

[ Edited ]

Hello,

 

I am currently working on a project where I want to see the OR of having a cardiac event for: underweight, overweight and obese bmi categories at each of the age values I listed in my code (ages 50 & 60). For some reason my code below only outputs the OR for age and bmicat individually and the OR for age at 50 and 60.  Is there something with my code? How can I get the output I want  for the odds ratio(listed below)? 

 

Code used:

proc logistic data=final;
class bmicat(ref="normal")/param=ref;
effect agespline=spline(age/naturalcubic);                                 *Wanted to allow for curvature by using spline;
model cardiac(event="yes")= agespline bmicat/ rsq ;

oddsratio age/at (age= 50 60);
oddsratio bmicat/at (age= 50 60);
run;

 

Output I am trying to get for the Odds Ratios:

underweight vs. normal at age=50 

overweight vs. normal at age= 50

obese vs. normal at age=50 

 

underweight vs. normal at age=60 

overweight vs. normal at age= 60

obese vs. normal at age=60 


Accepted Solutions
Solution
‎02-11-2018 06:57 PM
Esteemed Advisor
Posts: 5,543

Re: Logistic Regression: Odds ratio at specific values question

Since there is no interaction between age and bmi in your model, the odds ratios between bmi levels do not depend on age.

PG

View solution in original post


All Replies
Solution
‎02-11-2018 06:57 PM
Esteemed Advisor
Posts: 5,543

Re: Logistic Regression: Odds ratio at specific values question

Since there is no interaction between age and bmi in your model, the odds ratios between bmi levels do not depend on age.

PG
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 176 views
  • 1 like
  • 2 in conversation