TMB: Automatic Differentiation and Laplace Approximation

By Kasper Kristensen, Anders Nielsen, Casper W. Berg, Hans Julius Skaug, Bradley M. Bell. 2015

931 citations recorded by the source corpus.

TMB is an open source R package that enables quick implementation of complex nonlinear random effect (latent variable) models in a manner similar to the established AD Model Builder package (ADMB, admb-project.org). In addition, it offers easy access to parallel computations. The user defines the joint likelihood for the data and the random effects as a C++ template function, while all the other operations are done in R; e.g., reading in the data. The package evaluates and maximizes the Laplace approximation of the marginal likelihood where the random effects are automatically integrated out. This approximation, and its derivatives, are obtained using automatic differentiation (up to order three) of the joint likelihood. The computations are designed to be fast for problems with many random effects (~10^6) and parameters (~10^3). Computation times using ADMB and TMB are compared on a suite of examples ranging from simple models to large spatial models where the random effects are a Gaussian random field. Speedups ranging from 1.5 to about 100 are obtained with increasing gains for large problems. The package and examples are available at this http URL

Subfields: Economics and Econometrics, Environmental Engineering, Statistics and Probability

View Paper: https://www.semanticscholar.org/paper/fb355cfd007199d3594bc05dde7e7727fa2081be

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Economics and Econometrics

  1. Casper W. Berg
  2. Anders Nielsen
  3. Martin Mächler
  4. C. Costello
  5. Hans Julius Skaug
  6. Benjamin M. Bolker
  7. Mollie E. Brooks
  8. Koen J. van Benthem

In Environmental Engineering

  1. Casper W. Berg
  2. Anders Nielsen
  3. Christopher J. Paciorek
  4. Benjamin M. Bolker
  5. David I. Warton
  6. O. Jensen
  7. Francky Fouedjio
  8. Mikyoung Jun

In Statistics and Probability

  1. Casper W. Berg
  2. Anders Nielsen
  3. Benjamin M. Bolker
  4. Hans Julius Skaug
  5. Kasper Kristensen
  6. Mollie E. Brooks
  7. Koen J. van Benthem
  8. Arni Magnusson

Citations in the corpus