tmbstan: 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) <doi:10.1371/journal.pone.0197954>.

Version: 1.0.91
Depends: rstan
Imports: methods, Rcpp, TMB
LinkingTo: StanHeaders, rstan, BH, Rcpp, RcppEigen, TMB, RcppParallel
Published: 2023-08-26
DOI: 10.32614/CRAN.package.tmbstan
Author: Kasper Kristensen
Maintainer: Kasper Kristensen <kaskr at>
License: GPL (≥ 3)
NeedsCompilation: yes
SystemRequirements: GNU make
Citation: tmbstan citation info
Materials: NEWS
In views: MixedModels
CRAN checks: tmbstan results


Reference manual: tmbstan.pdf


Package source: tmbstan_1.0.91.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): tmbstan_1.0.91.tgz, r-oldrel (arm64): tmbstan_1.0.91.tgz, r-release (x86_64): tmbstan_1.0.91.tgz, r-oldrel (x86_64): tmbstan_1.0.91.tgz
Old sources: tmbstan archive

Reverse dependencies:

Reverse imports: hmmTMB
Reverse suggests: SAMtool
Reverse enhances: dsem


Please use the canonical form to link to this page.