Hello,
I am using StataMP18 on Windows10.
I am trying to test the assumptions of my two-level linear regression model.
In this thread it came to my attention that Stata calculates the same residuals when the relevel option is specified and when it is not.
Can anyone explain to me why that is and what it means? Is the relevel option really the righ way to calculate level 2 residuals?
Any help is highly appreciated!
Here my code and outcomes
I am using StataMP18 on Windows10.
I am trying to test the assumptions of my two-level linear regression model.
In this thread it came to my attention that Stata calculates the same residuals when the relevel option is specified and when it is not.
Can anyone explain to me why that is and what it means? Is the relevel option really the righ way to calculate level 2 residuals?
Any help is highly appreciated!
Here my code and outcomes
Code:
mixed F01 x1 x2 x3 || L2:, mle predict l2res, residuals relevel(L2) predict l2res2, res list lfd F01 l2res l2res2 in 1/12, noobs sep(12) +--------------------------------------------------------+ | lfd F01 l2res l2res2 | |--------------------------------------------------------| | 10000004 5. Zufrieden -,1256996 -,1256996 | | 10000007 5. Zufrieden -,3762915 -,3762915 | | 10000008 5. Zufrieden ,5353866 ,5353866 | | 10000014 4. Eher zufrieden -1,15214 -1,15214 | | 10000043 6. Sehr zufrieden ,6140783 ,6140783 | | 10000048 5. Zufrieden -,3397757 -,3397757 | | 10000076 4. Eher zufrieden -1,348396 -1,348396 | | 10000095 3. Eher unzufrieden -1,339205 -1,339205 | | 10000102 1. Sehr unzufrieden -4,373418 -4,373418 | | 10000136 4. Eher zufrieden -,8631215 -,8631215 | | 10000137 4. Eher zufrieden -,2085489 -,2085489 | | 10000169 6. Sehr zufrieden ,6701893 ,6701893 | +--------------------------------------------------------+
Comment