turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- marginal models in SAS adding weights of survey da...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

11-18-2016 09:53 PM

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