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


From   Thomas Norris <T.Norris2@lboro.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index