Skip to content

Print out of function lmer

2 messages · Li Li, Ben Bolker

#
Hi all,
  I want to add the column for the variance of the random effect in the
printout of the lmer function.  For now only standard deviation is shown.
See example printout below. Is it possible to add a column for the variance?
   Thanks very much!!
    Hanna
Linear mixed model fit by REML ['lmerMod']
Formula: result ~ 1 + (1 | analyst) + (1 | day1)
   Data: one1
REML criterion at convergence: 126.0852
Random effects:
 Groups   Name        Std.Dev.
 day1     (Intercept) 1.130e-08
 analyst  (Intercept) 9.547e-01
 Residual             1.079e+00
Number of obs: 40, groups:  day1, 20; analyst, 4
Fixed Effects:
(Intercept)
      7.823

  
  
#
Yes, you can:

library(lme4)
example(lmer)
print(summary(fm1),ranef.comp=c("Variance","Std.Dev."))
On Sun, Nov 22, 2015 at 1:36 PM, li li <hannah.hlx at gmail.com> wrote: