Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: gllamm subpopulation weighting


From   Lisa Marie Yarnell <lisayarnell@yahoo.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index