Package: ctsmTMB 1.1.0

Phillip Vetter

ctsmTMB: Continuous Time Stochastic Modelling using Template Model Builder

Perform state and parameter inference, and forecasting, in stochastic state-space systems using the 'ctsmTMB' R6 class. This class provides a user-friendly interface for working with stochastic state space models. Inference is based on maximum likelihood estimation, with derivatives efficiently computed through automatic differentiation enabled by the 'TMB'/'RTMB' packages (Kristensen et al., 2016) <doi:10.18637/jss.v070.i05>. The available inference methods include Kalman filters, in addition to a Laplace approximation-based smoothing method. For further details of these methods refer to the documentation of the 'CTSMR' package <https://ctsm.info/ctsmr-reference.pdf> and Thygesen (2025) <doi:10.48550/arXiv.2503.21358>. Forecasting capabilities include moment predictions and stochastic path simulations implemented in 'C++' using 'Rcpp' (Eddelbuettel et al., 2018) <doi:10.1080/00031305.2017.1375990> for computational efficiency.

Authors:Phillip Vetter [aut, cre, cph], Jan Møller [ctb], Uffe Thygesen [ctb], Peder Bacher [ctb], Henrik Madsen [ctb]

ctsmTMB_1.1.0.tar.gz
ctsmTMB_1.1.0.zip(r-4.7)ctsmTMB_1.1.0.zip(r-4.6)ctsmTMB_1.1.0.zip(r-4.5)
ctsmTMB_1.1.0.tgz(r-4.6-x86_64)ctsmTMB_1.1.0.tgz(r-4.6-arm64)ctsmTMB_1.1.0.tgz(r-4.5-x86_64)ctsmTMB_1.1.0.tgz(r-4.5-arm64)
ctsmTMB_1.1.0.tar.gz(r-4.7-arm64)ctsmTMB_1.1.0.tar.gz(r-4.7-x86_64)ctsmTMB_1.1.0.tar.gz(r-4.6-arm64)ctsmTMB_1.1.0.tar.gz(r-4.6-x86_64)
ctsmTMB_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ctsmTMB/json (API)

# Install 'ctsmTMB' in R:
install.packages('ctsmTMB', repos = c('https://phillipbvetter.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/phillipbvetter/ctsmtmb/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • Ornstein - Sample from a simulated Ornstein-Uhlenbeck process with time-dependent mean
  • Ornstein_augmented - Sample from a simulated two-state Ornstein-Uhlenbeck process

On CRAN:

Conda:

cpp

5.52 score 6 stars 92 scripts 216 downloads 2 exports 31 dependencies

Last updated from:156a377563. Checks:12 ERROR, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR240
linux-devel-x86_64ERROR260
source / vignettesERROR316
linux-release-arm64ERROR259
linux-release-x86_64ERROR244
macos-release-arm64ERROR250
macos-release-x86_64ERROR927
macos-oldrel-arm64ERROR258
macos-oldrel-x86_64ERROR466
windows-develERROR296
windows-releaseERROR248
windows-oldrelERROR259
wasm-releaseOK154

Exports:ctsmTMBnewModel

Dependencies:clicpp11Derivfarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixpatchworkR6RColorBrewerRcppRcppArmadilloRcppEigenrlangRTMBS7scalesstringistringrTMBvctrsviridisLitewithrzigg