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.zip(r-4.7)BayesTSM_1.0.1.zip(r-4.6)BayesTSM_1.0.1.zip(r-4.5)
BayesTSM_1.0.1.tgz(r-4.6-x86_64)BayesTSM_1.0.1.tgz(r-4.6-arm64)BayesTSM_1.0.1.tgz(r-4.5-x86_64)BayesTSM_1.0.1.tgz(r-4.5-arm64)
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://thomasklausch2.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

4.30 score 2 stars 10 exports 49 dependencies

Last updated from:a829278034. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK200
linux-devel-x86_64OK186
source / vignettesOK202
linux-release-arm64OK181
linux-release-x86_64OK169
macos-release-arm64OK115
macos-release-x86_64OK222
macos-oldrel-arm64OK138
macos-oldrel-x86_64OK214
windows-develOK174
windows-releaseOK138
windows-oldrelOK157
wasm-releaseOK132

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 17 2026.

Last update: 2026-06-08
Started: 2026-05-29