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.


0.1.1 by Mollie Brooks, 7 months 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], Mollie Brooks [aut, cre]

Documentation:   PDF Manual  

AGPL-3 license

Imports methods, TMB, lme4, Matrix, nlme

Suggests knitr, testthat, MASS, lattice, ggplot2, mlmRev, bbmle, pscl, MCMCpack, coda, reshape2

Linking to TMB, RcppEigen

Imported by sjstats.

See at CRAN