MCMC Sampling from 'TMB' Model Object using 'Stan'

Enables all 'rstan' functionality for a 'TMB' model object, in particular MCMC sampling and chain visualization. Sampling can be performed with or without Laplace approximation for the random effects. This is demonstrated in Monnahan & Kristensen (2018) .


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

1.2.1 by Kasper Kristensen, a month ago


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


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


Authors: Kasper Kristensen [aut, cre] (ORCID: , Andrew Johnson [ctb] , Cole Monnahan [ctb]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports methods, Rcpp, TMB

Depends on rstan

Suggests knitr, rmarkdown, RTMB, tinytest

Linking to StanHeaders, rstan, BH, Rcpp, RcppEigen, TMB, RcppParallel

System requirements: GNU make


Imported by BayesGP, hmmTMB.

Suggested by DAST, SAMtool, salmonMSE.

Enhanced by dsem.


See at CRAN