Template Model Builder: A General Random Effect Tool Inspired by 'ADMB'
Overview
With this tool, a user should be able to quickly implement complex random effect models through simple C++ templates. The package combines 'CppAD' (C++ automatic differentiation), 'Eigen' (templated matrix-vector library) and 'CHOLMOD' (sparse matrix routines available from R) to obtain an efficient implementation of the applied Laplace approximation with exact derivatives. Key features are: Automatic sparseness detection, parallelism through 'BLAS' and parallel user templates.
- add PROTECT/UNPROTECT to protect against false-positive rchk warning #418.
- Finalize Eigen 5 compatibility.
- Some internal TMB namespaces have been cleaned up.
From NEWS in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 31
- Examples that run
- 17%2 run in a plain check · 10 never run
- Exported functions with examples
- 39%
- Documented parameters
- 96%
- Return-value docs
- 57%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 63%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/kaskr/adcomp on 2026-10-18.
GitHub Pages site last deployed 2024-04-04
Dependencies
Installing TMB adds 2 packages (2 with compiled code, 3.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 3 more dependents and 11 packages that suggest it on CRAN ↗
Code & Tests
People & History
Show 2 more contributorsHide 2 contributors
Pick two releases to compare their code metrics.
- 1.9.25Latest
- 1.9.232026-07-23 · diff ↗
- 1.9.222026-07-21 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.9.212026-03-23 · diff ↗
- 1.9.202026-03-17 · diff ↗
- 1.9.192025-12-15 · diff ↗
- 1.9.182025-10-13 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.9.172025-03-10 · diff ↗
- 1.9.162025-01-08 · diff ↗
- 1.9.152024-09-09 · diff ↗
- 1.9.142024-07-03 · diff ↗
- 1.9.132024-06-28 · diff ↗
- 1.9.12
- RR 4.4.0 released · 2024-04-24
Show 48 earlier eventsHide 48 earlier events
- 1.9.112024-04-03 · diff ↗
- 1.9.102023-12-12 · diff ↗
- 1.9.92023-11-28 · diff ↗
- 1.9.82023-11-27 · diff ↗
- 1.9.72023-11-22 · diff ↗
- 1.9.62023-08-11 · diff ↗
- 1.9.52023-07-18 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.9.42023-04-18 · diff ↗
- 1.9.32023-03-28 · diff ↗
- 1.9.22023-01-23 · diff ↗
- 1.9.12022-08-16 · diff ↗
- 1.9.02022-05-27 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.8.12022-03-23 · diff ↗
- 1.8.0
- 1.7.222021-09-28 · diff ↗
- 1.7.212021-09-06 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.7.202021-04-08 · diff ↗
- 1.7.192021-02-05 · diff ↗
- 1.7.182020-07-27 · diff ↗
- 1.7.17
- RR 4.0.0 released · 2020-04-24
- 1.7.162020-01-15 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.7.152018-11-09 · diff ↗
- 1.7.14
- RR 3.5.0 released · 2018-04-23
- 1.7.13
- 1.7.122017-12-11 · diff ↗
- 1.7.112017-08-09 · diff ↗ ·
added 3 exports
checkConsistency, print.checkConsistency, summary.checkConsistency - 1.7.102017-05-05 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.7.92017-04-12 · diff ↗
- 1.7.82017-02-09 · diff ↗
- 1.7.72017-02-01 · diff ↗
- 1.7.6
- 1.7.52016-11-21 · diff ↗
- 1.7.42016-09-21 · diff ↗
- 1.7.22016-08-09 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.7.0
- 1.6.62016-01-30 · diff ↗
- 1.6.5
- 1.6.22015-10-19 · diff ↗
- 1.6.12015-10-15
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-10-15
- Total releases
- 52 / 11 yrs
- License
- GPL-2 OSI
- Copyright
- See the file COPYRIGHTS
- Minimum R
- ≥ 3.0.0
- Download size
- 763 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("TMB")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v070.i05, 10.1007/s10651-017-0372-4.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.