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.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)
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:
  • 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.

cpp

1.00 score 239 downloads 9 exports 73 dependencies

Last updated from:45fb8b3491. Checks:5 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK489
linux-devel-x86_64OK575
source / vignettesOK472
linux-release-arm64OK487
linux-release-x86_64OK438
wasm-releaseFAIL189

Exports:convert_medianfit_censorfit_enrollfit_event_blindfit_event_unblindfit_modelsgenerate_dataget_ocpredict_eventtime

Dependencies:abindbackportsBHbitbit64callrcheckmateclicliprcodetoolscpp11crayondescdigestdistributionaldplyrfarverfurrrfuturegenericsggplot2globalsgluegridExtragtablehmsinlineisobandlabelinglifecyclelistenvloomagrittrmatrixStatsnumDerivotelparallellypillarpkgbuildpkgconfigplyrposteriorprettyunitsprocessxprogresspspurrrQuickJSRR6RColorBrewerRcppRcppEigenRcppParallelreadrreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr