basket: Basket Trial Analysis

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>.

Version: 0.10.11
Depends: R (≥ 3.5.0)
Imports: GenSA, foreach, ggplot2, stats, tibble, tidyr, dplyr, igraph, gridExtra, itertools, crayon, cli, RColorBrewer, tidygraph, ggraph
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0), doParallel
Published: 2021-10-16
DOI: 10.32614/CRAN.package.basket
Author: Nan Chen [aut], Ryan Hafen [ctb], Brian Hobbs [aut], Alex Kaizer [aut], Michael J. Kane ORCID iD [aut, cre]
Maintainer: Michael J. Kane <michael.kane at>
License: LGPL-2
NeedsCompilation: no
Citation: basket citation info
Materials: README NEWS
CRAN checks: basket results


Reference manual: basket.pdf
Vignettes: Using the basket Package


Package source: basket_0.10.11.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): basket_0.10.11.tgz, r-oldrel (arm64): basket_0.10.11.tgz, r-release (x86_64): basket_0.10.11.tgz, r-oldrel (x86_64): basket_0.10.11.tgz
Old sources: basket archive


Please use the canonical form to link to this page.