Package: BayesCTDesign
Type: Package
Title: Two Arm Bayesian Clinical Trial Design with and Without
        Historical Control Data
Version: 0.6.1
Authors@R: c(
    person("Barry", "Eggleston", email = "beggleston@rti.org", role = c("cre", "aut")),
	person("Doug", "Wilson", email = "doug.roy.wilson@gmail.com", role = c("aut")),
	person("Becky", "McNeil", email = "rmcneil@rti.org", role = c("aut")),
    person("Joseph", "Ibrahim", email = "jibrahim@email.unc.edu", role = c("aut")),
	person("Diane", "Catellier", email = "dcatellier@rti.org", role = c("fnd", "rth", "aut")))
Description: A set of functions to help clinical trial researchers calculate power and sample size for two-arm Bayesian randomized clinical trials that do or do not incorporate historical control data.  At some point during the design process, a clinical trial researcher who is designing a basic two-arm Bayesian randomized clinical trial needs to make decisions about power and sample size within the context of hypothesized treatment effects.  Through simulation, the simple_sim() function will estimate power and other user specified clinical trial characteristics at user specified sample sizes given user defined scenarios about treatment effect,control group characteristics, and outcome.  If the clinical trial researcher has access to historical control data, then the researcher can design a two-arm Bayesian randomized clinical trial that incorporates the historical data.  In such a case, the researcher needs to work through the potential consequences of historical and randomized control differences on trial characteristics, in addition to working through issues regarding power in the context of sample size, treatment effect size, and outcome.  If a researcher designs a clinical trial that will incorporate historical control data, the researcher needs the randomized controls to be from the same population as the historical controls.  What if this is not the case when the designed trial is implemented?  During the design phase, the researcher needs to investigate the negative effects of possible historic/randomized control differences on power, type one error, and other trial characteristics.  Using this information, the researcher should design the trial to mitigate these negative effects.  Through simulation, the historic_sim() function will estimate power and other user specified clinical trial characteristics at user specified sample sizes given user defined scenarios about historical and randomized control differences as well as treatment effects and outcomes.  The results from historic_sim() and simple_sim() can be printed with print_table() and graphed with plot_table() methods.  Outcomes considered are Gaussian, Poisson, Bernoulli, Lognormal, Weibull, and Piecewise Exponential.  The methods are described in Eggleston et al. (2021) <doi:10.18637/jss.v100.i21>.  
Depends: R (>= 3.5.0)
License: GPL-3
Encoding: UTF-8
URL: https://github.com/begglest/BayesCTDesign
BugReports: https://github.com/begglest/BayesCTDesign/issues
Imports: eha (>= 2.9.0), ggplot2 (>= 2.2.1), survival (>= 2.41-3),
        reshape2 (>= 1.4.3), stats (>= 3.5.0)
RoxygenNote: 7.1.2
NeedsCompilation: no
Packaged: 2021-11-28 07:11:42 UTC; TEgglest
Author: Barry Eggleston [cre, aut],
  Doug Wilson [aut],
  Becky McNeil [aut],
  Joseph Ibrahim [aut],
  Diane Catellier [fnd, rth, aut]
Maintainer: Barry Eggleston <beggleston@rti.org>
Repository: CRAN
Date/Publication: 2021-11-30 11:20:02 UTC
Built: R 4.6.0; ; 2026-04-26 05:52:36 UTC; unix
