Learn R Programming

lmerTest (version 2.0-33)

summary-methods: Methods for Function summary in Package lmerTest

Description

Methods for function summary in package lmerTest

Arguments

Methods

signature(object = "merModLmerTest" ,ddf = "Satterthwaite" ,…)

summary of the results of linear mixed effects model fitting of object. Returns the same output as summary of "merMod" class but with additional columns with the names "df", "t value" and "Pr(>t)" representing degrees of freedom, t-statistics and p-values respectively calculated based on Satterthwaite's or Kenward-Roger's approximations. summary

Examples

Run this code
# 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