merTools: Tools for Analyzing Mixed Effect Regression Models

Provides methods for extracting results from mixed-effect model objects fit with the 'lme4' package. Allows construction of prediction intervals efficiently from large scale linear and generalized linear mixed-effects models. This method draws from the simulation framework used in the Gelman and Hill (2007) textbook: Data Analysis Using Regression and Multilevel/Hierarchical Models.

Version: 1.0.0
Depends: R (≥ 3.0.2), lme4 (≥ 1.1-11), methods
Imports: arm, dplyr, mvtnorm, reformulas, foreach, abind, ggplot2, blme, broom.mixed, Matrix
Suggests: testthat, knitr, rmarkdown, shiny, nlme, future.apply, rstanarm, Amelia, DT
Published: 2026-05-31
DOI: 10.32614/CRAN.package.merTools
Author: Jared E. Knowles [aut, cre], Carl Frederick [aut], Alex Whitworth [ctb]
Maintainer: Jared E. Knowles <jared at civilytics.com>
BugReports: https://github.com/jknowles/merTools/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://jknowles.github.io/merTools/, https://github.com/jknowles/merTools
NeedsCompilation: no
Citation: merTools citation info
Materials: README, NEWS
In views: MixedModels
CRAN checks: merTools results

Documentation:

Reference manual: merTools.html , merTools.pdf
Vignettes: Prediction Intervals from merMod Objects (source)
Validating predictInterval() against brms (source)
Exploring Contextual Effects with merTools (source)
Imputation (source)
Marginalizing Random Effect Levels (source)
An Introduction to merTools (source)

Downloads:

Package source: merTools_1.0.0.tar.gz
Windows binaries: r-devel: merTools_0.6.4.zip, r-release: merTools_0.6.4.zip, r-oldrel: merTools_0.6.4.zip
macOS binaries: r-release (arm64): merTools_1.0.0.tgz, r-oldrel (arm64): merTools_1.0.0.tgz, r-release (x86_64): merTools_1.0.0.tgz, r-oldrel (x86_64): merTools_1.0.0.tgz
Old sources: merTools archive

Reverse dependencies:

Reverse imports: CalibrationCurves
Reverse suggests: insight, rmcorr

Linking:

Please use the canonical form https://CRAN.R-project.org/package=merTools to link to this page.