{
  "_id": "6a47892a6527f6f71fa0d42e",
  "Package": "goldilocks",
  "Title": "Goldilocks Adaptive Trial Designs for Time-to-Event Endpoints",
  "Version": "0.5.0.9000",
  "Authors@R": "c(\nperson(given = \"Graeme L.\", family = \"Hickey\",\nrole = c(\"aut\", \"cre\"),\nemail = \"graemeleehickey@gmail.com\",\ncomment = c(ORCID = \"0000-0002-4989-0054\")),\nperson(given = \"Ying\", family = \"Wan\",\nrole = \"aut\",\nemail = \"ying.wan@bd.com\"),\nperson(given = \"Thevaa\", family = \"Chandereng\",\nrole = \"aut\",\nemail = \"tc3123@cumc.columbia.edu\",\ncomment = c(ORCID = \"0000-0003-4078-9176\",\n\"bayesDP code as a template\")),\nperson(given = \"Becton, Dickinson and Company\",\nrole = \"cph\"),\nperson(given = \"Tim\", family = \"Kacprowski\",\nrole = \"ctb\",\nemail = \"t.kacprowski@tu-braunschweig.de\",\ncomment = \"For code from fastlogrank R package.\"))",
  "Description": "Implements the Goldilocks adaptive trial design for a time\nto event outcome using a piecewise exponential model and\nconjugate Gamma prior distributions. The method closely follows\nthe article by Broglio and colleagues\n<doi:10.1080/10543406.2014.888569>, which allows users to\nexplore the operating characteristics of different trial\ndesigns.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "URL": "https://graemeleehickey.github.io/goldilocks/,\nhttps://github.com/graemeleehickey/goldilocks,\nhttps://CRAN.R-project.org/package=goldilocks",
  "BugReports": "https://github.com/graemeleehickey/goldilocks/issues",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://graemeleehickey.r-universe.dev",
  "Date/Publication": "2026-07-01 16:46:59 UTC",
  "RemoteUrl": "https://github.com/graemeleehickey/goldilocks",
  "RemoteRef": "HEAD",
  "RemoteSha": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-01 17:56:57 UTC",
    "User": "root"
  },
  "Author": "Graeme L. Hickey [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4989-0054>),\nYing Wan [aut],\nThevaa Chandereng [aut] (ORCID:\n<https://orcid.org/0000-0003-4078-9176>, bayesDP code as a\ntemplate),\nBecton, Dickinson and Company [cph],\nTim Kacprowski [ctb] (For code from fastlogrank R package.)",
  "Maintainer": "Graeme L. Hickey <graemeleehickey@gmail.com>",
  "_user": "graemeleehickey",
  "_type": "src",
  "_file": "goldilocks_0.5.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/17df09d8e7456d92aef354ef2dacc647a48bc39370616e0417ec963c157fb11a",
  "_filesize": 569743,
  "_sha256": "17df09d8e7456d92aef354ef2dacc647a48bc39370616e0417ec963c157fb11a",
  "_expires": "2026-10-11T10:04:25.000Z",
  "_created": "2026-07-01T17:56:57.000Z",
  "_published": "2026-07-03T10:04:26.117Z",
  "_jobs": [
    {
      "job": 84976720583,
      "time": 181,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8018499237"
    },
    {
      "job": 84976720892,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8018501072"
    },
    {
      "job": 84976720906,
      "time": 198,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018505938"
    },
    {
      "job": 84976721044,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018496957"
    },
    {
      "job": 84976721350,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8018478406"
    },
    {
      "job": 84976720618,
      "time": 286,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8018538198"
    },
    {
      "job": 84976720582,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018481409"
    },
    {
      "job": 84976720421,
      "time": 272,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018532516"
    },
    {
      "job": 84976719964,
      "time": 209,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018432596"
    },
    {
      "job": 84976720858,
      "time": 176,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8018496655"
    },
    {
      "job": 84976720450,
      "time": 142,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8018484979"
    },
    {
      "job": 84976720838,
      "time": 140,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8018484299"
    },
    {
      "job": 84976720571,
      "time": 155,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8018489542"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486",
  "_status": "success",
  "_upstream": "https://github.com/graemeleehickey/goldilocks",
  "_commit": {
    "id": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
    "author": "Graeme Hickey <graemeleehickey@gmail.com>",
    "committer": "Graeme Hickey <graemeleehickey@gmail.com>",
    "message": "Add hot-path performance benchmarks\n\nCloses #42\n",
    "time": 1782924419
  },
  "_maintainer": {
    "name": "Graeme L. Hickey",
    "email": "graemeleehickey@gmail.com",
    "login": "graemeleehickey",
    "linkedin": "in/graemeleehickey",
    "orcid": "0000-0002-4989-0054",
    "twitter": "@graemeleehickey",
    "description": "Senior Director of Statistics | Medtronic Structural Heart & Aortic",
    "uuid": 5270977
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Depends"
    },
    {
      "package": "BH",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "pbmcapply",
      "role": "Imports"
    },
    {
      "package": "PWEALL",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "graemeleehickey",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 13
    },
    {
      "week": "2026-24",
      "n": 26
    },
    {
      "week": "2026-25",
      "n": 3
    },
    {
      "week": "2026-26",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 8
    }
  ],
  "_tags": [
    {
      "name": "V0.5.0",
      "date": "2026-06-10"
    }
  ],
  "_topics": [
    "adaptive",
    "bayesian",
    "bayesian-statistics",
    "clinical-trials",
    "statistics",
    "cpp"
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "graemeleehickey",
      "count": 151,
      "uuid": 5270977
    },
    {
      "user": "bd-graeme-hickey",
      "count": 22,
      "uuid": 83983607
    }
  ],
  "_userbio": {
    "uuid": 5270977,
    "type": "user",
    "name": "Graeme Hickey",
    "followers": 48,
    "description": "Senior Director of Statistics | Medtronic Structural Heart & Aortic"
  },
  "_downloads": {
    "count": 329,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/goldilocks"
  },
  "_devurl": "https://github.com/graemeleehickey/goldilocks",
  "_pkgdown": "https://graemeleehickey.github.io/goldilocks/",
  "_searchresults": 15,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/goldilocks.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/graemeleehickey/goldilocks",
  "_realowner": "graemeleehickey",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.0",
      "date": "2021-05-10"
    },
    {
      "version": "0.4.0",
      "date": "2025-01-08"
    },
    {
      "version": "0.5.0",
      "date": "2026-06-10"
    }
  ],
  "_exports": [
    "enrollment",
    "ppwe",
    "prop_to_haz",
    "pwe_impute",
    "pwe_sim",
    "randomization",
    "sim_comp_data",
    "sim_trials",
    "summarise_sims",
    "survival_adapt"
  ],
  "_help": [
    {
      "page": "enrollment",
      "title": "Simulate enrollment times",
      "topics": [
        "enrollment"
      ]
    },
    {
      "page": "goldilocks",
      "title": "goldilocks",
      "topics": [
        "goldilocks"
      ]
    },
    {
      "page": "ppwe",
      "title": "Cumulative distribution function of the PWE for a vectorized hazard rate parameter",
      "topics": [
        "ppwe"
      ]
    },
    {
      "page": "prop_to_haz",
      "title": "Estimate plausible piecewise constant hazard rates from summary summary event proportions",
      "topics": [
        "prop_to_haz"
      ]
    },
    {
      "page": "pwe_impute",
      "title": "Impute piecewise exponential time-to-event outcomes",
      "topics": [
        "pwe_impute"
      ]
    },
    {
      "page": "pwe_sim",
      "title": "Simulate piecewise exponential time-to-event outcomes",
      "topics": [
        "pwe_sim"
      ]
    },
    {
      "page": "randomization",
      "title": "Randomization allocation",
      "topics": [
        "randomization"
      ]
    },
    {
      "page": "sim_comp_data",
      "title": "Simulate a complete clinical trial with event data drawn from a piecewise exponential distribution",
      "topics": [
        "sim_comp_data"
      ]
    },
    {
      "page": "sim_trials",
      "title": "Simulate one or more clinical trials subject to known design parameters and treatment effect",
      "topics": [
        "sim_trials"
      ]
    },
    {
      "page": "summarise_sims",
      "title": "Summarize simulations to get operating characteristics",
      "topics": [
        "summarise_sims"
      ]
    },
    {
      "page": "survival_adapt",
      "title": "Simulate and execute a single adaptive clinical trial design with a time-to-event endpoint",
      "topics": [
        "survival_adapt"
      ]
    }
  ],
  "_readme": "https://github.com/graemeleehickey/goldilocks/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pbmcapply",
    "pillar",
    "pkgconfig",
    "PWEALL",
    "R6",
    "Rcpp",
    "rlang",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "bayes-piecewise.Rmd",
      "filename": "bayes-piecewise.html",
      "title": "Bayesian piecewise-exponential designs",
      "engine": "knitr::rmarkdown",
      "headings": [
        "When piecewise hazards help",
        "Setting up the design",
        "The Bayesian decision rule",
        "A single simulated trial",
        "Notes on the piecewise model",
        "Sensitivity to the cut-point specification",
        "See also"
      ],
      "created": "2026-06-10 04:43:18",
      "modified": "2026-07-01 16:28:34",
      "commits": 3
    },
    {
      "source": "architecture.Rmd",
      "filename": "architecture.html",
      "title": "Package architecture",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Function dependency diagram",
        "Function roles",
        "Simulation layer",
        "Trial engine",
        "Data generation and analysis utilities"
      ],
      "created": "2026-06-09 07:38:45",
      "modified": "2026-06-16 21:11:40",
      "commits": 2
    },
    {
      "source": "single-arm.Rmd",
      "filename": "single-arm.html",
      "title": "Single-arm designs with a performance goal",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The decision rule",
        "Setting up the design",
        "Why block and rand_ratio still appear",
        "Operating characteristics",
        "A practical caveat on benchmarks",
        "See also"
      ],
      "created": "2026-06-10 04:57:06",
      "modified": "2026-07-01 16:28:34",
      "commits": 3
    },
    {
      "source": "technical-methods.Rmd",
      "filename": "technical-methods.html",
      "title": "Technical details of the Goldilocks design",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Vignette summary",
        "1. Design and notation",
        "2. Event-time model",
        "3. Posterior distribution of hazards",
        "$$\\pi(\\boldsymbol{\\lambda} \\mid \\mathcal{D})",
        "4. Predictive distribution for incomplete outcomes",
        "$$p(\\mathcal{D}^{\\mathrm{mis}} \\mid \\mathcal{D}_{\\ell}^{\\mathrm{obs}})",
        "5. Interim decision algorithm",
        "5.1 Predictive probability at the current sample size",
        "$$P_",
        "5.2 Predictive probability at the maximum sample size",
        "$$P_",
        "6. Final analysis",
        "6.1 Frequentist final tests",
        "6.2 Bayesian final test",
        "$$\\Delta^",
        "\\left[1 - \\exp{-H_1^{(b)}(\\tau)}\\right]",
        "$$\\widehat{\\Pr}(\\Delta < h_0 \\mid \\mathcal{D})",
        "6.3 Loss to follow-up at the final analysis",
        "7. Operating characteristics",
        "8. Threshold selection",
        "9. Relation to group-sequential designs",
        "10. Package-specific scope",
        "References"
      ],
      "created": "2026-06-16 13:05:38",
      "modified": "2026-07-01 16:28:34",
      "commits": 3
    },
    {
      "source": "broglio.Rmd",
      "filename": "broglio.html",
      "title": "Two-arm randomized trials",
      "engine": "knitr::rmarkdown",
      "headings": [
        "One-sided tests",
        "References"
      ],
      "created": "2021-03-07 17:49:35",
      "modified": "2026-06-16 21:11:40",
      "commits": 4
    }
  ],
  "_score": 6.1180993120779945,
  "_indexed": true,
  "_nocasepkg": "goldilocks",
  "_universes": [
    "graemeleehickey"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:59:51.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/78f089491ef3ff2cc14177914f155ed0d7b9ecaadae1aae1c82841e1b79d1d96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:59:46.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/7e15909c5e32b6afc2d3f0e0b01b689fb923c95c0291bc488c89da77c28a03d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.0.9000",
      "date": "2026-07-01T18:00:07.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/c3e9300a2571cbaf540fd777a9e36f5ce73b78cae4cbae10260aea51506674d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:59:36.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/bae99fffc90ee45ed0c97df3313f751f63866b8a1b792381f7179dcbcefa1994",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:58:47.000Z",
      "arch": "aarch64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/8c30cb0a257326684557351023c84b8d9591dd5551b33360d00a4c3101eb87c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.0.9000",
      "date": "2026-07-01T18:00:50.000Z",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/2f204aac7944ae4ad58201846e1bf8c3f142bb40e7c0b85c8b976822e8b07a7e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:58:55.000Z",
      "arch": "aarch64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/da156513c63aa1fcd07fdb16289149f041759b0ff6c79257b8658b686679081c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.0.9000",
      "date": "2026-07-01T18:00:39.000Z",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/c2b427a50d28dd2e9644106bf88f19b7097239902d2797ef8db64e8b906e5135",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.0.9000",
      "date": "2026-07-01T18:00:09.000Z",
      "arch": "emscripten",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/d9c9ff668f45a3a7025f3920575420cce704adc7c3f4f9ed8bee4e459c2d7f0f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:58:27.000Z",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/c84f51802114f8053784f021e0aa0376631649db93ef84fd32e2b34c9760ae6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:58:46.000Z",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/613e39f198ac9c616beb436acf5d9f62188a38c1758ec3e0dc22f0a77daceb58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.0.9000",
      "date": "2026-07-01T17:58:39.000Z",
      "arch": "x86_64",
      "commit": "4de43c646fd7b71915d656135e2f6fe40fadf1ee",
      "fileid": "https://r2.ropensci.org/27e1ee3729c465c8c5ca10f94ec487475f3dd0e3429a762a026ef1788ce0c9de",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/graemeleehickey/actions/runs/28537151486"
    }
  ]
}