lmerTest Package: Tests in Linear Mixed Effects Models

Alexandra Kuznetsova, Per B. Brockhoff, Rune Haubo Bojesen Christensen

Research output: Contribution to journalJournal articleResearchpeer-review

12030 Downloads (Pure)


One of the frequent questions by users of the mixed model function lmer of the lme4 package has been: How can I get p values for the F and t tests for objects returned by lmer? The lmerTest package extends the 'lmerMod' class of the lme4 package, by overloading the anova and summary functions by providing p values for tests for fixed effects. We have implemented the Satterthwaite's method for approximating degrees of freedom for the t and F tests. We have also implemented the construction of Type I - III ANOVA tables. Furthermore, one may also obtain the summary as well as the anova table using the Kenward-Roger approximation for denominator degrees of freedom (based on the KRmodcomp function from the pbkrtest package). Some other convenient mixed model analysis tools such as a step method, that performs backward elimination of nonsignificant effects - both random and fixed, calculation of population means and multiple comparison tests together with plot facilities are provided by the package as well.
Original languageEnglish
JournalJournal of Statistical Software
Issue number13
Number of pages26
Publication statusPublished - 2017

Bibliographical note

This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License


Dive into the research topics of 'lmerTest Package: Tests in Linear Mixed Effects Models'. Together they form a unique fingerprint.

Cite this