BookmarkSubscribeRSS Feed
Gowthami99
Fluorite | Level 6
Hi
I’m asked to prepare a strategy such that the value of significant parameters (age,risk,pressure) estimate the odds that the person is a smoker
Risk Age Pressure Smoker
12 57 152 No
24 67 163 Yes
.....so on
6 REPLIES 6
Gowthami99
Fluorite | Level 6
Hi
I’m asked to prepare a strategy such that the value of significant parameters (age,risk,pressure) estimate the odds that the person is a smoker
Risk Age Pressure Smoker
12 57 152 No
24 67 163 Yes
.....so on



Any answer is highly appreciated !!
Thank you
Reeza
Super User

You would need to implement a logistic regression model to get the odds ratio. PROC LOGISTIC is a procedure that can be used to calculate the odds ratio. 

 

Check the fully worked example here - click the link at the top of the page to get the code. Run it, make sure you understand it, then apply to your data. If you have categorical variables keep an eye on the CLASS statement and the design matrix to understand how its dummy coding the variables. 

 


@Gowthami99 wrote:
I didn’t get you

 

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
  • 6 replies
  • 2106 views
  • 2 likes
  • 4 in conversation