Package: BayesPET 0.1.0

Xinyi He

BayesPET: Bayesian Prediction of Event Times for Blinded Randomized Controlled Trials

Bayesian methods for predicting the calendar time at which a target number of events is reached in clinical trials. The methodology applies to both blinded and unblinded settings and jointly models enrollment, event-time, and censoring processes. The package provides tools for trial data simulation, model fitting using 'Stan' via the 'rstan' interface, and event time prediction under a wide range of trial designs, including varying sample sizes, enrollment patterns, treatment effects, and event or censoring time distributions. The package is intended to support interim monitoring, operational planning, and decision-making in clinical trial development. Methods are described in Fu et al. (2025) <doi:10.1002/sim.70310>.

Authors:Xinyi He [cre, aut], Jingyan Fu [aut], Ying Yuan [aut, cph]

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

# Install 'BayesPET' in R:
install.packages('BayesPET', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • onetbb– Parallelism library for C++
  • c++– GNU Standard C++ Library v3
Datasets:
  • data_example - Example trial datasets for fitting Stan models and predicting event times

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

onetbbcpp

1.00 score 319 downloads 9 exports 73 dependencies

Last updated from:45fb8b3491. Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK468
linux-devel-x86_64OK494
source / vignettesOK504
linux-release-arm64OK495
linux-release-x86_64OK488
windows-devel-arm64OK501
windows-devel-x86_64OK716
windows-release-arm64OK500
windows-release-x86_64OK669
wasm-releaseOK310

Exports:convert_medianfit_censorfit_enrollfit_event_blindfit_event_unblindfit_modelsgenerate_dataget_ocpredict_eventtime

Dependencies:abindbackportsBHbitbit64callrcheckmateclicliprcodetoolscpp11crayondescdigestdistributionaldplyrfarverfurrrfuturegenericsggplot2globalsgluegridExtragtablehmsinlineisobandlabelinglifecyclelistenvloomagrittrmatrixStatsnumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprettyunitsprocessxprogresspspurrrQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreadrreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr