Generalized Linear Mixed Models using Template Model Builder
Overview
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.
Install
Health
- OK13 OK2026-10-03
- NOTE10 OK, 3 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 62 (8 internal)
- Examples that run
- 93%27 run in a plain check (2 of them under a condition) · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 62%
- Documented parameters
- 97%
- Return-value docs
- 62%
- Help pages citing references
- 18%
- basic examples of glmmTMB usage PDF
- Covariance structures with glmmTMB
- Hacking glmmTMB HTML
- Miscellaneous examples HTML
- Model evaluation PDF
- Parallel optimization using glmmTMB HTML
- Post-hoc MCMC with glmmTMB HTML
- Priors in glmmTMB HTML
- Simulate from a fitted glmmTMB model or a formula HTML
- Troubleshooting with glmmTMB HTML
Downloads
Repository
- PRs merged (all time)
- 95%
- Median days to close, 50 most recently updated closed issues
- 17
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/glmmtmb/glmmtmb on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-12
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-05-16Commits: at least 34 crediting it in the message
- GitHub Copilotfirst seen 2026-05-17Pull request: opened by its own accountCommits: 3 by its own account
- Claude CodePull requests: 3 from outside contributors, first on 2026-07-16, 2 from forks
- Claude Sonnet 513 commits · Jul to Sep 2026
- Claude Sonnet 4.69 commits · May 2026
- Claude Fable 56 commits · Jul 2026
- Claude Opus 54 commits · Aug 2026
- Claude Opus 4.82 commits · Jul 2026
Dependencies
Installing glmmTMB adds 56 packages (32 with compiled code, 55 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Show 8 more contributorsHide 8 contributors
Previously maintained by Ben Bolker (1.1.2 to 1.1.2.2) and Mollie Brooks (0.1.1 to 1.1.1).
Pick two releases to compare their code metrics.
- 1.1.15.2Latest2026-09-29 · current release · diff ↗ ·
added 11 exports
combinomial, dbell, dcombinom, dgenpois, isGLMM, ordinal, pbell, pcombinom, pgenpois, rgenpois, useRTMB - RR 4.6.0 released · 2026-04-24
- 1.1.14
- 1.1.13
- 1.1.122025-08-18 · diff ↗ ·
added 9 exports
bread, estfun, format_corr, format_sdvar, getGroups, get_sd, meatHC, sandwich, vcovHC - RR 4.5.0 released · 2025-04-11
- 1.1.112025-04-03 · diff ↗
- 1.1.102024-09-27 · diff ↗ ·
removed 18 exports
RHSForm<-, RHSForm, addForm, addForm0, checkDepPackageVersion, drop.special, dropHead, expandAllGrpVar, expandDoubleVert, extractForm, findbars_x, inForm, noSpecials, reOnly, replaceForm, splitForm, sub_specials, sumTermsadded 4 exports
bell, nbinom12, set_simcodes, skewnormal - RR 4.4.0 released · 2024-04-24
- 1.1.9
- 1.1.8
- RR 4.3.0 released · 2023-04-21
- 1.1.72023-04-05 · diff ↗
- 1.1.6
- 1.1.5
- 1.1.4
Show 23 earlier eventsHide 23 earlier events
- RR 4.2.0 released · 2022-04-22
- 1.1.32022-03-14 · diff ↗
- 1.1.2.32021-09-20 · diff ↗ ·
added 15 exports
RHSForm<-, RHSForm, addForm0, drop.special, dtruncated_nbinom1, dtruncated_nbinom2, dtruncated_poisson, expandAllGrpVar, expandDoubleVert, findbars_x, gt_load, reOnly, replaceForm, sumTerms, up2date - 1.1.2.22021-09-02 · diff ↗
- unarchivedReturned to CRAN2021-07-20
- 1.1.22021-07-20 · diff ↗
- archivedRemoved from CRAN2021-07-10repeated problems were not corrected in time Failed on install on Solaris, check failure on ATLAS
- 1.1.1
- RR 4.1.0 released · 2021-05-18
- 1.0.2.1
- RR 4.0.0 released · 2020-04-24
- 1.0.12020-03-15 · diff ↗
- 1.0.02020-02-03 · diff ↗ ·
removed 3 exports
tmbroot, emm_basis.glmmTMB, recover_data.glmmTMBadded 1 export
ziGamma - RR 3.6.0 released · 2019-04-26
- 0.2.32019-01-11 · diff ↗ ·
added 5 exports
get_cor, Anova.glmmTMB, Effect.glmmTMB, emm_basis.glmmTMB, recover_data.glmmTMB - 0.2.2.02018-07-03 · diff ↗
- 0.2.1.02018-05-11 · diff ↗ ·
removed 1 export
betaradded 7 exports
beta_family, dropHead, extractForm, inForm, tmbroot, truncated_compois, truncated_genpois - RR 3.5.0 released · 2018-04-23
- 0.2.02017-12-11 · diff ↗
- 0.1.42017-10-26 · diff ↗ ·
added 7 exports
betabinomial, betar, glmmTMBControl, truncated_nbinom1, truncated_nbinom2, truncated_poisson, tweedie - RR 3.4.0 released · 2017-04-21
- 0.1.12017-02-20
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-02-20
- Total releases
- 26 / 9 yrs
- License
- AGPL-3 OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 12 KB / 4 files
- Download size
- 5.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("glmmTMB")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2017-066, 10.18637/jss.v112.i01.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.