Basket Trial Analysis
Overview
Implementation of multisource exchangeability models for Bayesian analyses of prespecified subgroups arising in the context of basket trial design and monitoring. The R 'basket' package facilitates implementation of the binary, symmetric multi-source exchangeability model (MEM) with posterior inference arising from both exact computation and Markov chain Monte Carlo sampling. Analysis output includes full posterior samples as well as posterior probabilities, highest posterior density (HPD) interval boundaries, effective sample sizes (ESS), mean and median estimations, posterior exchangeability probability matrices, and maximum a posteriori MEMs. In addition to providing "basketwise" analyses, the package includes similar calculations for "clusterwise" analyses for which subgroups are combined into meta-baskets, or clusters, using graphical clustering algorithms that treat the posterior exchangeability probabilities as edge weights. In addition plotting tools are provided to visualize basket and cluster densities as well as their exchangeability. References include Hyman, D.M., Puzanov, I., Subbiah, V., Faris, J.E., Chau, I., Blay, J.Y., Wolf, J., Raje, N.S., Diamond, E.L., Hollebecque, A. and Gervais, R (2015) doi:10.1056/NEJMoa1502309; Hobbs, B.P. and Landin, R. (2018) doi:10.1002/sim.7893; Hobbs, B.P., Kane, M.J., Hong, D.S. and Landin, R. (2018) doi:10.1093/annonc/mdy457; and Kaizer, A.M., Koopmeiners, J.S. and Hobbs, B.P. (2017) doi:10.1093/biostatistics/kxx031.
Install
Health
NOTERd filesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) basket-package.Rd:22: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:23-24: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:25-26: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:27-28: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:29-30: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:31-32: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:33: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:34: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:35: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:36-37: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:38: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:39: Lost braces in \itemize; meant \describe ?
checkRd: (-1) basket-package.Rd:40
...[truncated]...
bility
| ^
checkRd: (-1) plot_pep.Rd:33: Lost braces
33 | \item{[tile_color]}{A text string setting the color of the edges of the
| ^
checkRd: (-1) plot_pep.Rd:33-34: Lost braces
33 | \item{[tile_color]}{A text string setting the color of the edges of the
| ^
checkRd: (-1) plot_pep.Rd:36-37: Lost braces in \itemize; meant \describe ?
checkRd: (-1) plot_pep.Rd:38: Lost braces in \itemize; meant \describe ?
checkRd: (-1) plot_pep.Rd:39-40: Lost braces in \itemize; meant \describe ?
checkRd: (-1) plot_pep.Rd:41: Lost braces in \itemize; meant \describe ?
checkRd: (-1) plot_pep.Rd:42-43: Lost braces in \itemize; meant \describe ?
checkRd: (-1) plot_pep.Rd:44-45: Lost braces in \itemize; meant \describe ?
checkRd: (-1) vemu.Rd:20: Lost braces; missing escapes or markup?
20 | concluded that nonmelanoma tumor types harboring $BRAF^{V600}$ mutations
| ^NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Michael J. Kane <michael.kane@yale.edu>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
- NOTE13 NOTE2026-09-08
- ERROR12 NOTE, 1 ERROR2026-09-07
- NOTE13 NOTE2026-06-09
- ERROR12 NOTE, 1 ERROR2026-06-08
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 20includes a package overview page
- Examples that run
- 0%14 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 83%
- Documented parameters
- 96%
- Return-value docs
- 11%
- Help pages citing references
- 10%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 34
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/kaneplusplus/basket on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- unarchivedReturned to CRAN2021-10-17
- 0.10.11Latest
- RR 4.1.0 released · 2021-05-18
- archivedRemoved from CRAN2021-03-21check problems were not corrected in time
- RR 4.0.0 released · 2020-04-24
- 0.10.22020-04-07 · diff ↗
- 0.10.1
- 0.9.10
- 0.9.22019-05-14
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-05-14
- Total releases
- 5 / 7 yrs
- License
- LGPL-2 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 0.7 KB / 2 files
- Download size
- 764 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("basket")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2021-020.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.