Package: BayesTSM 1.0.1

Thomas Klausch

BayesTSM: Bayesian Progressive Three State Model with Censoring Due to Intervention

In screening programs, individuals are usually followed up and tested (screened) for the development of a disease, such as cancer. The target disease often develops progressively in stages; for example healthy (state 1), pre-state disease (state 2), and the disease state (state 3). When the pre-state disease is found during screening it is intervened upon, for example by surgical removal of a lesion, so that the progression of the pre-state disease to disease is interrupted. This is called censoring due to intervention. Researchers often want to estimate the time from baseline to the pre-state disease, the time from the pre-state disease to the disease, and the total time from baseline to the disease. In addition, researchers often want to regress these times on baseline covariates. To these ends, 'BayesTSM' estimates a progressive three-state model with censoring due to intervention using Bayesian estimation methods, as described in Klausch et al. (2023) <doi:10.1214/22-AOAS1669>.

Authors:Thomas Klausch [aut, cre]

BayesTSM_1.0.1.tar.gz
BayesTSM_1.0.1.tar.gz(r-4.7-arm64)BayesTSM_1.0.1.tar.gz(r-4.7-x86_64)BayesTSM_1.0.1.tar.gz(r-4.6-arm64)BayesTSM_1.0.1.tar.gz(r-4.6-x86_64)
BayesTSM_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BayesTSM/json (API)

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

Bug tracker:https://github.com/thomasklausch2/bayestsm/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • mod_slice - A small fitted 'bayestsm' model for examples

On CRAN:

Conda:

cpp

2.70 score 10 exports 49 dependencies

Last updated from:569412b451. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK155
linux-devel-x86_64OK160
source / vignettesOK201
linux-release-arm64OK151
linux-release-x86_64OK163
wasm-releaseOK136

Exports:bayestsmbayestsm_seqgendatget_ICget_IC_seqlog_aft_priorppCIFsearch_prop_sdsearch_prop_sd_seqtrim.mcmc

Dependencies:abindactuarbackportscheckmateclicodacodetoolscpp11distributionaldoParallelexpintfarverforeachgenericsggplot2gluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixMatrixModelsmatrixStatsmcmcMCMCpackmvtnormnumDerivpillarpkgconfigposteriorquantregR6RColorBrewerRcpprlangS7scalesSparseMsurvivaltensorAtibbleutf8vctrsviridisLitewithr

BayesTSM: user guide

Rendered frombayestsm-userguide.Rmdusingknitr::rmarkdownon Jun 16 2026.

Last update: 2026-06-16
Started: 2026-06-16