I am interested in (confidence) intervals or standard errors or some thing similar (sampling based?) around the estimates of variance components for the random effects in lme4::lmer models.
I am sure that I am oversimplyfying things (and I am aware that standard errors are deemed not to be the correct thing here), but I would greatly appreciate some lines of code that give some measure of the confidence in these estimates.
In the example from the help page of VarCorr I'd like some confidence aroun the three values in the Variance colum of this output:
data(Orthodont, package="nlme")
fm1 <- lmer(distance ~ age + (age|Subject), data = Orthodont)
vc <- VarCorr(fm1)
print(vc,comp=c("Variance"))
confint(fm1)
??? – Ben Bolkerconfint(fm1,which="theta_")^2
will work for the CIs on the variances, but won't make sense for the CIs on the covariance. – Ben Bolkerprint(vc,comp=c("Variance"))
gives three values for the variance: 'Subject (Intercept)', 'Subject age', and 'Residual'. Theconfint(fm1,which="theta_")^2
gives four intervals '.sig01', '.sig02', '.sig03', and '.sigma'. How do they relate? Especially, is there any CI for the residual variance? – Andreas