Skip to content
Prev 14943 / 20628 Next

bootstrapping random effects using confint() in lme4

I answered this offline but wanted to encourage everyone, when in
doubt, to post to r-sig-mixed-models at r-project.org rather than e-mailing
me directly ...

  confint.merMod has a FUN argument that allows bootstrap CIs on an
arbitrary function (as long as it returns a numeric vector) to be
computed, e.g.

   confint(fitted_model,method="boot",FUN=function(m) unlist(ranef(m)))

(We should probably add this as an example to the documentation ...)

  One can also get an estimate of the uncertainty in the conditional
modes by extracting the "postVar" attributes from the elements of
ranef(fitted_model,condVar=TRUE) ... if fm1 is the fitted model,

        
On 16-10-14 02:08 PM, Jonathan Miller wrote: