Learn R Programming

lmerTest (version 1.1-0)

lmer: Fit Linear Mixed-Effects Models

Description

Fit a linear mixed model

Arguments

Value

  • An object of class "merLmerTest"

Details

This lmer function is an overloaded function of lmer of mer class with an additional slot t.pval, which gives p-values for the t test of fixed terms with Satterthwaite approximation for degees of freedom.

See Also

The merLmerTest class, mer class

Examples

Run this code
## linear mixed models
fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)

# anova table the same as of class mer but with additional F statistics and  
# p-values calculated based on Satterthwaite's approximations
anova(fm1)

# anova table the same as of class mer 
anova(fm1, ddf="lme4")

# gives summary of merLmerTest class. The same as of class summary.mer but with 
# additional p-values calculated based on Satterthwate's approximations
summary(fm1)

Run the code above in your browser using DataLab