DUPLICATE THREAD
Reply to the other thread at https://communities.sas.com/t5/Base-SAS-Programming/How-to-estimate-the-odds-ratio-for-the-given-par...
PROC LOGISTIC can do this.
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.