I am working on a medical project and need help with coding. Here is my problem:
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'?
I am afraid that you have not understood the concept of "relative risk" that clearly. When we talk about relative risks, we usually divide the entire study population into distinct groups by a certain factor and then compare the incidence of an event by dividing them. In other words, the outcome, i.e., the dependent variable, should be categorical (usually binary). But you said the dependent variable in your model is continuous. There is no way of calculating relative risks when that is the case.
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!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: