Skip to content

ctsmTMB

1.1.1

Continuous Time Stochastic Modelling using Template Model Builder

0packages depend
2.6Kdownloads / year
65.2%test coverage
13/13checks pass

Overview

About
Maintained by Phillip VetterFirst published 2025-04-083 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 10.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.07
65.2%
Coverage · measured lines
100%
Documentation · exports
14
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-22
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 998 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
0%
Documented parameters
not tracked
Return-value docs
100%
References docs
0%

Downloads

2.6K
CRAN downloads in the past year
Rank #11,718 · ~7/day · ~220/mo
Daily download trend is not available in this view yet.
33730 days
84390 days
2.6K1 year
Compare downloads with other packages →
Also on433 r2u18 autocran

Repository

Repository
6Stars
3Forks
0Open issues
0Open PRs
0Releases
230Commits
4Contributors
230 commits · Last activity 2026-08-07 · 0% stars, 30d

Stars over time

2025-06-02 · 32026-07-07 · 6

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/phillipbvetter/ctsmtmb on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: claude on 2026-03-23

claude

Most recent: claude on 2026-03-23

Evidence
  • claude: on 2026-03-23 · evidence B, D
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
Imports (14)
Derivggplot2graphicsgrDevicesMatrixpatchworkR6RcpprlangRTMBstatsstringrTMButils
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (5)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Contributors (4)
Contributor
Contributor
Contributor
Contributor
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.1.1Latest
    2026-07-15 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    2025-08-28 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.0
    2025-04-08
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-04-08
Total releases
3 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0.0
Bundled data
497 KB / 4 files
Download size
1.9 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ctsmTMB")
Vetter, P., Bacher, P., Madsen, H., Møller, J., & Thygesen, U. (2026). ctsmTMB: Continuous Time Stochastic Modelling using Template Model Builder (Version 1.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.ctsmTMB

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ctsmTMB version 1.1.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy