BookmarkSubscribeRSS Feed
lic054
Calcite | Level 5

 

1. For the marginal models from logistic regression to obtain risk ratio (RR) for survey data with weights due to raking, what procedure in SAS is appropriate or is there any?

 

ie. Which procedure in SAS is best to translate the following STATA codes (not involving weights) into SAS codes and then also allow the adding of raking weights for survey data?

 

logit quit i.expo age_c gender

margins expo, post

nlcom (risk_ratio: _b[1.expo] / _b[0.expo])

 

2. For the following STATA codes using the “adjrr “STATA package that estimates marginal RR, which procedure in SAS is equivalent, and is there any SAS macro that functions similarly as the “adjrr “STATA package?

Also, I need to add raking weights for survey data later, so does SAS have a procedure that allows such weights to be added for such model as shown below by STATA codes?

 

ssc install adjrr

logit quit expo age_c gender

adjrr expo

 

Thanks,

LC

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 0 replies
  • 1229 views
  • 0 likes
  • 1 in conversation