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 on April 23, and its replacement, statalist.org is already up and running.


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

st: three-level xtreg


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