'R' Bindings for 'TMB'

Native 'R' interface to 'TMB' (Template Model Builder) so models can be written entirely in 'R' rather than 'C++'. Automatic differentiation, to any order, is available for a rich subset of 'R' features, including linear algebra for dense and sparse matrices, complex arithmetic, Fast Fourier Transform, probability distributions and special functions. 'RTMB' provides easy access to model fitting and validation following the principles of Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H., & Bell, B. M. (2016) and Thygesen, U.H., Albertsen, C.M., Berg, C.W. et al. (2017) .


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("RTMB")

2.0 by Kasper Kristensen, a month ago


https://github.com/kaskr/RTMB


Report a bug at https://github.com/kaskr/RTMB/issues


Browse source code at https://github.com/cran/RTMB


Authors: Kasper Kristensen [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, Matrix, methods, TMB, MASS

Suggests knitr, rmarkdown, igraph, tinytest, numDeriv, tinyplot, microbenchmark

Linking to Rcpp, TMB, RcppEigen


Imported by PKbioanalysis, RSEML, badp, ctsmTMB, dsem, glmmTMB, multiSA, pmrm, salmonMSE, sdmTMB, tsissm.

Depended on by BayesRTMB, LaMa, RTMBdist, ecostate, fishgrowth.

Suggested by tmbstan.


See at CRAN