Programming the statistical procedures from SAS

Get the relative risk

Reply
New Contributor
Posts: 3

Get the relative risk

[ Edited ]

Look at the association between stroke and high blood pressure by sex. Do you see any signs of confounding or interaction/effect modification? Regardless of your conclusion, calculate the Cochran Mantel-Haenszel prevalence rate ratio and compare it to the crude prevalence rate ratio. Is confounding present?

 

When I am using SAS, I get an error of 50% of cells have expected counts less than 5 error message. How can I correct this? I'm trying to get the relative risks 1 and 2 and I am unable to get them. Can you help me with this? Please give me some specific code if you can because I am stumped.

Super User
Posts: 18,599

Re: Get the relative risk

Did you specifically request the tests of interest? 

What does your current code look like and what's the output now? 

Super User
Posts: 10,880

Re: Get the relative risk

Does the text of the message say ERROR or WARNING?

SAS provides warnings for some procedures to let you know that what you are doing may either be inappropriate or that, in this case, the sample distribution, may have issues in interpretation.

 

What exact approach,  code if you have it, did you use?

I would guess that you dumped the data into proc freq and that the blood pressure, as a continuous measurement, had a very large number of categories. If so you have a number of approaches. One might be to create a categorical variable for blood pressure with 2 values that mean "high" and "not high".

 

Some example data of what you have, enough to illustrate your data question, is usually appropriate.

Ask a Question
Discussion stats
  • 2 replies
  • 140 views
  • 0 likes
  • 3 in conversation