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: gllamm subpopulation weighting


From   Lisa Marie Yarnell <[email protected]>
To   [email protected]
Subject   st: gllamm subpopulation weighting
Date   Mon, 31 Oct 2011 14:42:03 -0700 (PDT)

Hi, what's the code for subpopulation weights in gllamm?

Specifically, how do I run this model for the subpopulation of overweight kids in schools, and preserve the pweights?
gllamm notdep bmi boy aa hispanic ses, i(schoolid) family(binom) link(logit) eform pweight(wt)

Is it: 
gllamm notdep bmi boy aa hispanic ses if overweight==1, i(schoolid) family(binom) link(logit) eform pweight(wt)

Or is it: 
svy, subpop(overweight): gllamm bmi boy aa hispanic ses, i(schoolid) family(binom) link(logit) eform pweight(wt)

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


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