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: residuals after xtmixed


From   Thomas Norris <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: residuals after xtmixed
Date   Mon, 3 Dec 2012 17:32:59 +0000

Dear statalist,

I have ran the commands:

‘xtmixed y x_1 x_2|| studyid: x_1 x_2, cov(unstructured)mle’

‘predict fit’

‘predict res, residuals’

And the first participant's data is below

y                            x_1                        x_2                        fit                          res                         b1                          b2                              b3           
8.188689             .72068154           5.1019341           8.04669               .0442446             .0689545             -.0061089             .0792279             


Can anyone explain why: ‘Y’ minus ‘fit’  does not equal ‘res’ though?  Ie. 8.188689-8.04669= 0.14199 (not 0.0442446)?

Many thanks,

Tom 

Tom Norris (PhD student)
Centre of Global Health and Human Development
School of Sport, Exercise and Health Sciences
Loughborough University
Loughborough
LE11 3TU


Tom Norris (PhD student)
Centre of Global Health and Human Development
School of Sport, Exercise and Health Sciences
Loughborough University
Loughborough
LE11 3TU


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index