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: three-level xtreg


From   Lisa Marie Yarnell <[email protected]>
To   [email protected]
Subject   st: three-level xtreg
Date   Wed, 29 Jun 2011 09:05:05 -0700 (PDT)

Hello Statalisters.  My question is on three-level xtreg models.

I have seen 2-level xtreg models (e.g., time points nested within persons):
xtreg incorr spanish otherl bmi dep bmi_p50 bmi_p80 popbmi, i(aid) fe

I want to nest time points within persons within schools.  I got an error message when I tried:
. xtreg incorr spanish otherl bmi dep bmi_p50 bmi_p80 popbmi, i(aid scid) fe  
i():  too many variables specified

What is the code for this?

Thanks for your help,
Lisa
*
*   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