BookmarkSubscribeRSS Feed
mydamj
Calcite | Level 5

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'?

1 REPLY 1
Ksharp
Super User
You could use
proc logistic + /param=glm + lsmean trt/ ilink diff + %nlmeans
Check the second example:
https://support.sas.com/kb/23/003.html

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 175 views
  • 0 likes
  • 2 in conversation