Skip to content
Prev 4465 / 20628 Next

lmer() vs. lme() gave different variance component estimates

So far the results split on platform lines: John's is pc, Daniel's and
Reinhold's are Mac.

I get the Mac result on FreeBSD.
Linear mixed model fit by REML 
Formula: score ~ trt + (1 | id/eye) 
   Data: dat 
   AIC   BIC logLik deviance REMLdev
 425.2 474.2 -201.6    412.7   403.2
Random effects:
 Groups   Name        Variance Std.Dev.
 eye:id   (Intercept) 3.59531  1.89613 
 id       (Intercept) 3.51025  1.87357 
 Residual             0.01875  0.13693 
Number of obs: 640, groups: eye:id, 160; id, 80

Fixed effects:
            Estimate Std. Error t value
(Intercept)   2.5500     0.7287   3.499
trtB          0.9875     1.0305   0.958
trtC          0.8625     1.0305   0.837
trtControl    1.1500     1.0305   1.116
trtD          2.4125     1.0305   2.341
trtE          1.4375     1.0305   1.395
trtF          2.1750     1.0305   2.111
trtG         -2.5500     1.0305  -2.474

Correlation of Fixed Effects:
           (Intr) trtB   trtC   trtCnt trtD   trtE   trtF  
trtB       -0.707                                          
trtC       -0.707  0.500                                   
trtControl -0.707  0.500  0.500                            
trtD       -0.707  0.500  0.500  0.500                     
trtE       -0.707  0.500  0.500  0.500  0.500              
trtF       -0.707  0.500  0.500  0.500  0.500  0.500       
trtG       -0.707  0.500  0.500  0.500  0.500  0.500  0.500
R version 2.11.1 (2010-05-31) 
x86_64-unknown-freebsd8.0 

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
  

other attached packages:
[1] lme4_0.999375-35   Matrix_0.999375-43 lattice_0.19-11   

loaded via a namespace (and not attached):
[1] grid_2.11.1   nlme_3.1-96   stats4_2.11.1



Cheers

Andrew
On Fri, Sep 17, 2010 at 04:57:59PM -0300, Daniel wrote: