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.

Version: 1.1.9
Depends: R (≥ 3.6.0)
Imports: methods, TMB (≥ 1.9.0), lme4 (≥ 1.1-18.9000), Matrix, nlme, numDeriv, mgcv
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, parallel, blme, purrr, dplyr
Published: 2024-03-20
DOI: 10.32614/CRAN.package.glmmTMB
Author: Mollie Brooks ORCID iD [aut, cre], Ben Bolker ORCID iD [aut], Kasper Kristensen [aut], Martin Maechler ORCID iD [aut], Arni Magnusson ORCID iD [aut], Maeve McGillycuddy [ctb], Hans Skaug ORCID iD [aut], Anders Nielsen ORCID iD [aut], Casper Berg ORCID iD [aut], Koen van Bentham [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], Mikael Jagan ORCID iD [ctb], Brenton Wiernik ORCID iD [ctb], Daniel B. Stouffer ORCID iD [ctb]
Maintainer: Mollie Brooks <mollieebrooks at>
License: AGPL-3
NeedsCompilation: yes
SystemRequirements: GNU make
Citation: glmmTMB citation info
Materials: NEWS
In views: Environmetrics, MixedModels
CRAN checks: glmmTMB results


Reference manual: glmmTMB.pdf
Vignettes: Covariance structures with glmmTMB
Hacking glmmTMB
Post-hoc MCMC with glmmTMB
Miscellaneous examples
Parallel optimization using glmmTMB
Priors in glmmTMB
Simulate from a fitted glmmTMB model or a formula
Troubleshooting with glmmTMB
basic examples of glmmTMB usage
Model evaluation


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

Reverse dependencies:

Reverse depends: gmvjoint, predictmeans
Reverse imports: cv, DEGRE, GLMMcosinor, glmmSeq, iccCounts, lefko3, LongDat, Maaslin2, mecoturn, mtscr, muscat, pastaPlot, pdR, twosigma
Reverse suggests: afex, AICcmodavg, bayestestR, broom.helpers, broom.mixed, buildmer, DHARMa, easystats, ecostats, eyetrackingR, ggeffects, glmertree, gratia, insight, marginaleffects, metafor, mitml, mmrm, MOCHA, modelbased, multcomp, ordbetareg, parameters, performance, permutes, qra, RVAideMemoire, sdmTMB, see, sjPlot, tidybulk, tramME, WeMix
Reverse enhances: MuMIn, texreg


Please use the canonical form to link to this page.