[R-sig-ME] Print out of function lmer

Ben Bolker bbolker at gmail.com
Sun Nov 22 22:53:11 CET 2015


  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:
> 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
>
>> mod1
> 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
>>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models



More information about the R-sig-mixed-models mailing list