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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("glmmTMB") by Mollie Brooks, a month ago

Report a bug at

Browse source code at

Authors: Arni Magnusson [aut] , Hans Skaug [aut] , Anders Nielsen [aut] , Casper Berg [aut] , Kasper Kristensen [aut] , Martin Maechler [aut] , Koen van Bentham [aut] , Ben Bolker [aut] , Nafis Sadat [ctb] , Daniel L├╝decke [ctb] , Russ Lenth [ctb] , Joseph O'Brien [ctb] , Charles J. Geyer [ctb] , Maeve McGillycuddy [ctb] , Mollie Brooks [aut, cre]

Documentation:   PDF Manual  

AGPL-3 license

Imports methods, TMB, lme4, Matrix, nlme, numDeriv

Suggests knitr, rmarkdown, testthat, MASS, lattice, ggplot2, mlmRev, bbmle, pscl, coda, reshape2, car, emmeans, estimability, DHARMa, multcomp, MuMIn, effects, dotwhisker, broom, broom.mixed, plyr, png, boot, texreg, xtable, huxtable, mvabund

Linking to TMB, RcppEigen

System requirements: GNU make

Imported by iccCounts, lefko3.

Suggested by AICcmodavg, DHARMa, afex, broom.helpers, broom.mixed, buildmer, eyetrackingR, ggeffects, insight, modelbased, parameters, performance, qra, see, sjPlot.

Enhanced by texreg.

See at CRAN