Statalist


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

st: Re: xtmixed models of observations that are first nested and then crossed


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: Re: xtmixed models of observations that are first nested and then crossed
Date   Sat, 22 Nov 2008 23:10:30 +0100

Try

http://www.stata.com/meeting/fnasug08/gutierrez.pdf


HTH
Martin
_______________________
----- Original Message ----- From: "Heather Schwartz" <[email protected]>
To: <[email protected]>
Sent: Saturday, November 22, 2008 11:08 PM
Subject: st: xtmixed models of observations that are first nested and then crossed


I wish to estimate the effect of an educational treatment on student test
scores using the "xtmixed" command. I'm using panel data, so test scores
are nested within students, and the students are then crossed into (a)
neighborhoods and (b) schools. Neighborhoods are not perfectly nested
within schools, so this isn't a strictly nested-only model.

So level 1 of my model = test score at time t. Level 2 = student id. Level
3A = neighborhood id. Level 3B = school id.

I can't find examples in the "Multilevel & Longitudinal Modeling Using
Stata" of crossed *and* nested models that fits this mold. I don't think
the following code captures the fact that all of my test score observations
are first nested within students, and then those students are cross
assigned to neighborhoods & schools: "xtmixed Y X || _all:
R.neighborhood_id || _all: R.school_id || student_id:"

Any suggestions would be much appreciated!

Heather
-----------------------------------------
This message may contain privileged and confidential information intended
solely for the addressee. Please do not read, disseminate or copy it unless
you are the intended recipient.  If this message has been received in
error, we kindly ask that you notify the sender immediately by return email
and delete all copies of the message from your system. Thank you.

*
*   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/



*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index