# NOT RUN {
(fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy))
## will give you an additional column with p values for the t test
summary(fm1)
##using Kenward-Roger approximations to degrees of freedom
if(require(pbkrtest))
summary(fm1, ddf="Kenward-Roger")
#will give the summary of lme4 package
summary(fm1, ddf="lme4")
# }
Run the code above in your browser using DataLab