Here is the R code :
library(lme4)
fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
confint(fm1)
Computing profile confidence intervals ...
2.5 % 97.5 %
.sig01 14.3815760 37.715996
.sig02 -0.4815007 0.684986
.sig03 3.8011641 8.753383
.sigma 22.8982669 28.857997
(Intercept) 237.6806955 265.129515
Days 7.3586533 13.575919
I understand how the confidence interval for (Intercept)
and coefficient of Days
are calculated (though it is not profile confidence intervals ) :
res=summary(fm1)
ans=coefficients(res)
estimate = ans[,1]
se = ans[,2]
ci.int = estimate[1]+qnorm(c(.025,.975))*se[1]
[1] 238.0292 264.7810
ci.day = estimate[2]+qnorm(c(.025,.975))*se[2]
[1] 7.437595 13.496977
But I don't know how are the confidence interval of sig01
, sig02
, sig03
, sigma
calculated ?