About

Log in?

DTU users get better search results including licensed content and discounts on order fees.

Anyone can log in and get personalized features such as favorites, tags and feeds.

Log in as DTU user Log in as non-DTU user No thanks

DTU Findit

Journal article

TMB: Automatic differentiation and laplace approximation

From

National Institute of Aquatic Resources, Technical University of Denmark1

Section for Marine Living Resources, National Institute of Aquatic Resources, Technical University of Denmark2

University of Bergen3

University of Washington4

TMB is an open source R package that enables quick implementation of complex nonlinear random effects (latent variable) models in a manner similar to the established AD Model Builder package (ADMB, http://admb-project.org/; Fournier et al. 2011). 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 (approximate to 10(6)) and parameters (approximate to 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

Language: English
Publisher: Foundation for Open Access Statistics
Year: 2016
Pages: 1-21
ISSN: 15487660
Types: Journal article
DOI: 10.18637/jss.v070.i05
ORCIDs: Kristensen, Kasper , Nielsen, Anders and Berg, Casper Willestofte

DTU users get better search results including licensed content and discounts on order fees.

Log in as DTU user

Access

Analysis