Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- Re: How can i obtain a relative risk for my multi variable linear regr...

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 07-16-2024 03:43 PM
(454 views)

I am working on a medical project and need help with coding. Here is my problem:

- My dependent variable is continuous ('Y').
- My independent variables include a mixture of about 10 continuous and categorical variables, with 'X' being the main variable of interest.
- My goal is to determine the relative risk for 'X' while controlling for covariates (A, B, C, D).

I tried using `PROC GLM`

, but it does not provide relative risk. I understand that `PROC GENMOD`

is typically used for categorical dependent variables.

Could someone provide an example of SAS code to calculate the relative risk for my variable 'X'?

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

You could use

proc logistic + /param=glm + lsmean trt/ ilink diff + %nlmeans

Check the second example:

https://support.sas.com/kb/23/003.html

proc logistic + /param=glm + lsmean trt/ ilink diff + %nlmeans

Check the second example:

https://support.sas.com/kb/23/003.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Are you ready for the spotlight? We're accepting content ideas for **SAS Innovate 2025** to be held May 6-9 in Orlando, FL. The call is **open **until September 25. Read more here about **why** you should contribute and **what is in it** for you!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.