BookmarkSubscribeRSS Feed
iressa13
Fluorite | Level 6

When calculating relative risk, I adjusted for a known risk factor but the relative risk did not change from my crude. My instructor confirmed that my code was correct so does this just mean that the known risk factor isn’t actually a risk fact? I’m a bit confused and sorry that this isn’t SAS programming related but any help would be appreciated thank you!

2 REPLIES 2
ballardw
Super User

It never hurts to share the code you used. Depending on procedure used and "adjustment" method we might be able to provide some targeted things to examine. Right now all I would say is "something in the data". If your adjustment is used typically on a population as a whole such as smoking status in health studies it may not still be appropriate if your sample is all lung cancer positive individuals.

 

 

If there were any messages in the log other than x records read from data set lib.data and execution time you may want to include that as well. 

Reeza
Super User

@iressa13 wrote:

When calculating relative risk, I adjusted for a known risk factor but the relative risk did not change from my crude. My instructor confirmed that my code was correct so does this just mean that the known risk factor isn’t actually a risk fact? I’m a bit confused and sorry that this isn’t SAS programming related but any help would be appreciated thank you!


The code may be correct, but there's a few other reasons this can occur and still be wrong, a few are:

 

  • data didn't change correctly - ie didn't point at new dataset
  • selection method was used - effect wasn't included in model overall
  • user error - you looked at the wrong output
  • missing data - new factor is missing data

SAS Innovate 2025: Call for 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!

Submit your idea!

How to Concatenate Values

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.

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
  • 2 replies
  • 1002 views
  • 0 likes
  • 3 in conversation