The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

goldilocks: Adaptive Trial Designs for Survival and Binary Endpoints

Implements Goldilocks adaptive trial designs for time-to-event and fixed-time binary endpoints. Outcomes are generated with a piecewise exponential model, with conjugate Gamma priors used for predictive imputation. Final analyses may use log-rank, Cox, or restricted mean survival time tests, Bayesian piecewise-exponential inference, frequentist risk differences, or Bayesian beta-binomial inference. The method closely follows Broglio and colleagues (2014) <doi:10.1080/10543406.2014.888569> and supports simulation of design operating characteristics.

Version: 1.0.0
Depends: R (≥ 4.1.0), survival
Imports: dplyr, parallel, pbmcapply, PWEALL, Rcpp, rlang, stats
LinkingTo: BH, Rcpp
Suggests: bench, survRM2, covr, DiagrammeR, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-09-09
DOI: 10.32614/CRAN.package.goldilocks
Author: Graeme L. Hickey ORCID iD [aut, cre], Ying Wan [aut], Thevaa Chandereng ORCID iD [aut] (bayesDP code as a template), Becton, Dickinson and Company [cph], Tim Kacprowski [ctb] (For code from fastlogrank R package.)
Maintainer: Graeme L. Hickey <graemeleehickey at gmail.com>
BugReports: https://github.com/graemeleehickey/goldilocks/issues
License: GPL-3
URL: https://graemeleehickey.github.io/goldilocks/, https://github.com/graemeleehickey/goldilocks, https://CRAN.R-project.org/package=goldilocks
NeedsCompilation: yes
Language: en-US
Materials: README, NEWS
CRAN checks: goldilocks results

Documentation:

Reference manual: goldilocks.html , goldilocks.pdf
Vignettes: ADVENT: a published Goldilocks design (source, R code)
ANTHEM-HFrEF: a published adaptive survival design (source, R code)
Statistical workflow and reproducibility (source, R code)
Bayesian piecewise-exponential designs (source, R code)
Bayesian binary outcome designs (source, R code)
Calibrating prob_ha for type I error control (source, R code)
Inspecting adaptive decision paths (source, R code)
Frequentist binary outcome designs (source, R code)
Applying predictive decisions to an observed interim data cut (source, R code)
Restricted mean survival time designs (source, R code)
Single-arm designs with a performance goal (source, R code)
Technical details of the Goldilocks design (source, R code)
ThermoCool AF: immediate success from predictive probability (source, R code)
Two-arm randomized trials (source, R code)

Downloads:

Package source: goldilocks_1.0.0.tar.gz
Windows binaries: r-devel: goldilocks_1.0.0.zip, r-release: goldilocks_1.0.0.zip, r-oldrel: goldilocks_1.0.0.zip
macOS binaries: r-release (arm64): goldilocks_0.6.0.tgz, r-oldrel (arm64): goldilocks_0.6.0.tgz, r-release (x86_64): goldilocks_1.0.0.tgz, r-oldrel (x86_64): goldilocks_1.0.0.tgz
Old sources: goldilocks archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=goldilocks to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.