Learn R Programming

RTMB (version 2.0)

'R' Bindings for 'TMB'

Description

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) .

Copy Link

Version

Install

install.packages('RTMB')

Monthly Downloads

1,376

Version

2.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kasper Kristensen

Last Published

September 17th, 2026

Functions in RTMB (2.0)

RTMB-package

RTMB: R bindings for TMB
OSA-residuals

Recursive quantile residuals
TMB-interface

Interface to TMB
Simulation

Simulation
ADvector

The AD vector and its methods
Distributions

Distributions and special functions for which AD is implemented
expAv

Matrix exponential of sparse matrix multiplied by a vector.
Tape

The AD tape
Interpolation

Interpolation
MVgauss

Multivariate Gaussian densities
%~%

Distributional assignment operator
ADintegrate

AD adaptive numerical integration.
ADuniroot

AD one-dimensional root finding.
ADjoint

AD adjoint code from R
ADapply

AD apply functions
ADconstruct

AD aware numeric constructors
ADsparse

AD sparse matrix class
ADcomplex

AD complex numbers
AD

Convert R object to AD
ADoverload

Enable extra RTMB convenience methods
ADmatrix

AD matrix methods (sparse and dense)