Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: Using command svy glm to obtain risk ratios


From   "Hussein, Mustafa (Mustafa Hussien)" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: Using command svy glm to obtain risk ratios
Date   Mon, 17 Feb 2014 23:30:13 +0000

You are welcome! 

No, you should estimate your models with the -svy- prefix if you have complex survey data. Your code should look like:

svy: glm depvar indepvar, fam(poisson) link(log) eform

Using the -svy- prefix is equivalent to cluster robust estimation with pweights. So, in essence, the "robust" part of modified Poisson is taken care of when using the -svy- prefix. 

For more info on estimating model-based RRs using log-binomial, Poisson, and Cox models, see:
Barros & Hirakata (2003). BMC Med Res Methodol 3(21). PMID: 14567763
Zou (2004). Am J Epidemiol 159:702–706. PMID:15033648

Hope that helps
Mustafa 
________________________________________
From: [email protected] [[email protected]] on behalf of Agunwamba, Amenah A., Ph.D. [[email protected]]
Sent: Monday, February 17, 2014 4:17 PM
To: [email protected]
Subject: st: RE: Using command svy glm to obtain risk ratios

Thanks Mustafa,

So if I just eliminated the "svy" command, I can still get weighted RRs?

An example code might be:

glm outcome predictor, fam(poisson) link(log) no log vce(robust)

Thanks!


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index