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), rstantools,
        StanHeaders (>= 2.18.0)
SystemRequirements: GNU make
LazyData: true
NeedsCompilation: yes
Packaged: 2026-09-29 10:37:04 UTC; root
Author: Xinyi He [cre, aut], Jingyan Fu [aut], Ying Yuan [aut, cph]
Maintainer: Xinyi He <xinyi.he@uth.tmc.edu>
Config/pak/sysreqs: make
Repository: https://cran.r-universe.dev
Date/Publication: 2026-02-12 08:00:26 UTC
RemoteUrl: https://github.com/cran/BayesPET
RemoteRef: HEAD
RemoteSha: 45fb8b3491f6ce9b776a3296140434d1ec0d2c09
Built: R 4.6.0; wasm32-unknown-emscripten; 2026-09-29 10:44:39 UTC; unix
