BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ChuksManuel
Pyrite | Level 9

Hi SAS procedure community,

 

I have a survey data that i want to calculate the relative risk. I know i can implement this in SAS proc genmod using dist=binomial and link=log option. However i want to account for the complex sample design (design weight, strata and cluster). 

I saw the %surveygenmod macro which is the sas version of svyglm in R. The macro isn't already in SAS. Can anyone direct me on how I can get this uploaded in my SAS environment for use?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

You should be able to do this by using PROC SURVEYLOGISTIC to fit a logistic model and then use the NLMeans macro as shown in this note.

View solution in original post

3 REPLIES 3
SAS_Rob
SAS Employee

My suggestion would be to take the same approach as the example in the link below.  You would just change the GENMOD code to reflect the DIST=BIN and LINK=LOG options.

SAS/STAT Poisson Regressions for Complex Surveys

StatDave
SAS Super FREQ

You should be able to do this by using PROC SURVEYLOGISTIC to fit a logistic model and then use the NLMeans macro as shown in this note.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 735 views
  • 0 likes
  • 3 in conversation