Statalist


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

Re: st: non-nested random effects


From   rgutierrez@stata.com (Roberto G. Gutierrez, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: non-nested random effects
Date   Tue, 07 Apr 2009 09:11:21 -0500

Within this thread, Johan Hellstrom <johan.hellstrom@pol.umu.se> gives
the following good advice to which I would suggest one small change:

> Your Stata code...

> xtmixed FinishTime Sex01F PL2Age2 Sex01FxPL2Age2 PL2Age3 nFin1974toPrev
> MinCC PzCDrp MinCCxPzCDrp || NAME: || Year:

> ...implies that Year is nested within NAME. If I understand you correctly,
> the model you want to estimate is rather this one (?) :

> xtmixed FinishTime Sex01F PL2Age2 Sex01FxPL2Age2 PL2Age3 nFin1974toPrev
> MinCC PzCDrp MinCCxPzCDrp || _all:R.NAME: || Year:

Leave the colon (:) off the end of "R.NAME".

--Bobby
rgutierrez@stata.com
*
*   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   |   What's new   |   Site index