Package: BayesPET
Title: Bayesian Prediction of Event Times for Blinded Randomized
        Controlled Trials
Version: 0.1.0
Date: 2026-02-04
Authors@R: c(
    person("Xinyi", "He", , "xinyi.he@uth.tmc.edu", role = c("cre", "aut")),
    person("Jingyan", "Fu", , role = "aut"),
    person("Ying", "Yuan", , role = c("aut", "cph"))
  )
Description: 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>.
License: GPL (>= 3)
Encoding: UTF-8
RoxygenNote: 7.3.3
Biarch: true
Depends: R (>= 4.1.0)
Imports: dplyr, magrittr, methods, Rcpp (>= 0.12.0), RcppParallel (>=
        5.0.1), rstan (>= 2.18.1), utils, furrr, future, readr, tibble,
        tidyr, reshape2
LinkingTo: BH (>= 1.66.0), Rcpp (>= 0.12.0), RcppEigen (>= 0.3.3.3.0),
        RcppParallel (>= 5.0.1), rstan (>= 2.18.1), StanHeaders (>=
        2.18.0)
SystemRequirements: GNU make
LazyData: true
NeedsCompilation: yes
Packaged: 2026-02-09 23:50:47 UTC; admin
Author: Xinyi He [cre, aut],
  Jingyan Fu [aut],
  Ying Yuan [aut, cph]
Maintainer: Xinyi He <xinyi.he@uth.tmc.edu>
Repository: CRAN
Date/Publication: 2026-02-12 08:00:26 UTC
Built: R 4.7.0; x86_64-w64-mingw32; 2026-06-05 05:13:07 UTC; windows
Archs: x64
