Skip to content
Prev 12419 / 20628 Next

Confidence interval for relative contribution of random effect variance

<lorenz.gygax at ...> writes:
Hmmm.  The output of 

fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
summary(fm1)

gives


Random effects:
 Groups   Name        Variance Std.Dev. Corr
 Subject  (Intercept) 612.09   24.740       
          Days         35.07    5.922   0.07
 Residual             654.94   25.592       
Number of obs: 180, groups:  Subject, 18

  which shows both the variance and the standard deviation (i.e.
*not* the uncertainty estimate, just the point estimate of the
variability on both the variance and the standard deviation scales)
You can compute parametric bootstrap confidence intervals of
any quantity you want by applying boot.ci() to the results of bootMer()
(bootMer()'s second argument is the summary function, which you
can define however you like).  This is computationally expensive,
though (even more expensive than MCMC-type computations).

  In principle you might be able to use likelihood profiling
(which is what the default confint() method uses) to compute
profile likelihood confidence intervals of arbitrary quantities,
but you would need to be able to constrain an optimization algorithm
to the specified values (i.e., you would need to set nonlinear
equality constraints; there are functions in nloptr and elsewhere
(many of them called auglag()) that implement an augmented Lagrange
multiplier algorithm for such constraints, but I haven't tried it
out to see how it works.

The advantage of parametric bootstrap/MCMC approaches is that
you also get a finite-size-appropriate result; likelihood profiling
would inherit the asymptotic assumptions of the likelihood ratio test.

glmmADMB still implements a post-hoc MCMC sampling strategy simpler
to mcmcsamp (but you would be on your own for making sure the
chain was well-behaved, etc.)

  Ben Bolker