glmmTMB: Generalized Linear Mixed Models using Template Model Builder

Fit linear and generalized linear mixed models with various extensions, including zero-inflation. The models are fitted using maximum likelihood estimation via 'TMB' (Template Model Builder). Random effects are assumed to be Gaussian on the scale of the linear predictor and are integrated out using the Laplace approximation. Gradients are calculated using automatic differentiation.

Depends: R (≥ 3.2.0)
Imports: methods, TMB (≥ 1.7.14), lme4 (≥ 1.1-18.9000), Matrix, nlme
LinkingTo: TMB, RcppEigen
Suggests: knitr, rmarkdown, testthat, MASS, lattice, ggplot2 (≥ 2.2.1), mlmRev, bbmle (≥ 1.0.19), pscl, coda, reshape2, car (≥ 3.0.6), emmeans (≥ 1.4), estimability, DHARMa, multcomp, MuMIn, effects (≥ 4.0-1), dotwhisker, broom, broom.mixed, plyr, png, boot, texreg, xtable, huxtable, numDeriv
Published: 2020-07-02
Author: Arni Magnusson ORCID iD [aut], Hans Skaug [aut], Anders Nielsen ORCID iD [aut], Casper Berg ORCID iD [aut], Kasper Kristensen [aut], Martin Maechler ORCID iD [aut], Koen van Bentham [aut], Ben Bolker ORCID iD [aut], Nafis Sadat ORCID iD [ctb], Daniel L├╝decke ORCID iD [ctb], Russ Lenth [ctb], Joseph O'Brien ORCID iD [ctb], Mollie Brooks ORCID iD [aut, cre]
Maintainer: Mollie Brooks <mollieebrooks at>
License: AGPL-3
NeedsCompilation: yes
SystemRequirements: GNU make
Citation: glmmTMB citation info
Materials: NEWS
CRAN checks: glmmTMB results


Reference manual: glmmTMB.pdf
Vignettes: random effect structures
post-hoc MCMC
miscellaneous examples
parallel optimization
basic examples of glmmTMB usage
model evaluation
Package source: glmmTMB_1.0.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: glmmTMB_1.0.2.1.tgz, r-oldrel: glmmTMB_1.0.2.1.tgz
Old sources: glmmTMB archive

Reverse dependencies:

Reverse imports: DHARMa, lefko3, Maaslin2, muscat
Reverse suggests: afex, AICcmodavg, broom.mixed, buildmer, ggeffects, glmmboot, insight, modelbased, parameters, performance, see, sjPlot
Reverse enhances: texreg


Please use the canonical form to link to this page.