merModLmerTest-class: Mixed Model Representations

Description Objects from the Class See Also Examples

Description

The merModLmerTest contains merMod class of lme4 package and overloads anova and summary functions.

Objects from the Class

Objects can be created via the lmer functions.

See Also

lmer()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(m <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),
             data = sleepstudy))

## type 3 anova table with  denominator degrees of freedom
## calculated based on Satterthwaite's approximation
anova(m)

## type 1 anova table with denominator degrees of freedom
## calculated based on Satterthwaite's approximation
## Not run: 
anova(m, type=1)

## End(Not run)

## type3 anova table with additional F statistics and denominator degrees of freedom
## calculated based on Kenward-Roger's approximation
## Not run: 
if(requireNamespace("pbkrtest", quietly = TRUE))
anova(m, ddf="Kenward-Roger")

## End(Not run)

## anova table, that is returned by lme4 package
anova(m, ddf="lme4")

## summary of merModLmerTest object. Returns the same as merMod object but with an 
## additional column of p values for the t test. 
summary(m)

runehaubo/lmerTest documentation built on May 14, 2019, 6:15 p.m.