[R] extract value from mer object ?

Maas James Dr (MED) J.Maas at uea.ac.uk
Tue May 17 14:20:16 CEST 2011


What is the easiest way to extract a value from a 'mer' object from glmer?  The first I need is the 
trtpair Std.Dev.   which in this case is 0.17542?

I've managed to get the fixed effects numbers from 
summary(fednmaout)@coeffs

but no luck with the Random effects stuff.

TIA

Jim


> fednmaout
Linear mixed model fit by REML 
Formula: lor ~ as.factor(t2) + as.factor(t3) + (1 | trtpair) 
   AIC   BIC logLik deviance REMLdev
 97.17 107.6 -43.58    83.12   87.17
Random effects:
 Groups   Name        Variance Std.Dev.
 trtpair  (Intercept) 0.030771 0.17542 
 Residual             0.230785 0.48040 
Number of obs: 60, groups: trtpair, 3

Fixed effects:
               Estimate Std. Error t value
(Intercept)      0.3752     0.3563   1.053
as.factor(t2)1  -0.1677     0.2909  -0.576
as.factor(t3)1   0.1796     0.2909   0.617

Correlation of Fixed Effects:
            (Intr) a.(2)1
as.fctr(2)1 -0.816       
as.fctr(3)1 -0.816  0.500

===============================
Dr. Jim Maas
University of East Anglia



More information about the R-help mailing list