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: subpopulations, subpopulation weights in gllamm
From 
 
Lisa Marie Yarnell <[email protected]> 
To 
 
[email protected] 
Subject 
 
st: subpopulations, subpopulation weights in gllamm 
Date 
 
Sat, 29 Oct 2011 01:39:44 -0700 (PDT) 
Hello!  I estimated some models using gllamm that had persons nested in schools, and had grand sample weights applied.  For example, I ran this model:
gllamm notdep bmi boy aa hispanic ses, i(schoolid) family(binom) link(logit) eform pweight(wt)
If I want to run the model for subgroups such as overweight / not overweight, is it sufficient to simply type "if overweight = 1" in the model, like this:
gllamm notdep bmi boy aa hispanic ses, i(schoolid) family(binom) link(logit) eform pweight(wt) if overweight = 1
OR do I need to put the subgroup somewhere else in the model, as in some versions of Stata outside of the gllamm module, such as:
gllamm(overweight) notdep bmi boy aa hispanic ses, i(schoolid) family(binom) link(logit) eform pweight(wt)
I would like gllamm to use proper subpopulation weighting when I select the overweight group.  I would be really appreciative of any help I can get with this.  Thank you for your time.
*
*   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/