BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
LostInSAS
Fluorite | Level 6

Hello everyone

 

I just started using SAS less than a month ago so I'm having a bit of a hard time. Smiley Frustrated

I'm assuming that there is a causal association between certain lifestyle factors (such as smoking status) and a certain health outcome (e.g: cancer). I want to calculate population attributable risks in order to estimate the proportion of certain health outcomes (proportion of cancer cases) attributed to different lifestyle factors.
Could you please provide me with a script?

 

Thanks a lot Smiley Very Happy

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

i had to Google to see what you meant, does this look correct:

https://www.med.uottawa.ca/sim/data/PAR_e.htm

 

If so, start off with a PROC FREQ to calculate the RR. Check the documentation under examples for an example that illustrates how and the RR is calculated. 

 

http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_exa...

View solution in original post

4 REPLIES 4
Reeza
Super User

i had to Google to see what you meant, does this look correct:

https://www.med.uottawa.ca/sim/data/PAR_e.htm

 

If so, start off with a PROC FREQ to calculate the RR. Check the documentation under examples for an example that illustrates how and the RR is calculated. 

 

http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_exa...

LostInSAS
Fluorite | Level 6
Yes! Thank you 🙂
LostInSAS
Fluorite | Level 6
Thank you 🙂

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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