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, numDeriv
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, mvabund
Published: 2021-09-20
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], Charles J. Geyer [ctb], Maeve McGillycuddy [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: Covariance structures with glmmTMB
post-hoc MCMC with glmmTMB
Miscellaneous examples
Parallel optimization using glmmTMB
Simulate from a fitted glmmTMB model
Troubleshooting with glmmTMB
basic examples of glmmTMB usage
model evaluation


Package source: glmmTMB_1.1.2.3.tar.gz
Windows binaries: r-devel:, r-devel-UCRT:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): glmmTMB_1.1.2.3.tgz, r-release (x86_64): glmmTMB_1.1.2.3.tgz, r-oldrel: glmmTMB_1.1.2.3.tgz
Old sources: glmmTMB archive

Reverse dependencies:

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


Please use the canonical form to link to this page.