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


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("BayesPET")

0.1.0 by Xinyi He, 8 months ago


Browse source code at https://github.com/cran/BayesPET


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


Documentation:   PDF Manual  


GPL (>= 3) license


Imports dplyr, magrittr, methods, Rcpp, RcppParallel, rstan, utils, furrr, future, readr, tibble, tidyr, reshape2

Linking to BH, Rcpp, RcppEigen, RcppParallel, rstan, StanHeaders

System requirements: GNU make


See at CRAN