Package: bhmbasket 1.1.0

Stephan Wojciekowski

bhmbasket: Bayesian Hierarchical Models for Basket Trials

Provides functions for the evaluation of basket trial designs with binary endpoints. Operating characteristics of a basket trial design are assessed by simulating trial data according to scenarios, analyzing the data with Bayesian hierarchical models (BHMs), and assessing decision probabilities on stratum and trial-level based on Go / No-go decision making. The package is build for high flexibility regarding decision rules, number of interim analyses, number of strata, and recruitment. The BHMs proposed by Berry et al. (2013) <doi:10.1177/1740774513497539> and Neuenschwander et al. (2016) <doi:10.1002/pst.1730>, as well as a model that combines both approaches are implemented. Functions are provided to implement Bayesian decision rules as for example proposed by Fisch et al. (2015) <doi:10.1177/2168479014533970>. In addition, posterior point estimates (mean/median) and credible intervals for response rates and some model parameters can be calculated. For simulated trial data, bias and mean squared errors of posterior point estimates for response rates can be provided.

Authors:Stephan Wojciekowski [aut, cre], Tathagata Chattopadhyay [aut]

bhmbasket_1.1.0.tar.gz
bhmbasket_1.1.0.zip(r-4.7)bhmbasket_1.1.0.zip(r-4.6)bhmbasket_1.1.0.zip(r-4.5)
bhmbasket_1.1.0.tgz(r-4.6-any)bhmbasket_1.1.0.tgz(r-4.5-any)
bhmbasket_1.1.0.tar.gz(r-4.7-any)bhmbasket_1.1.0.tar.gz(r-4.6-any)
bhmbasket_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bhmbasket/json (API)
NEWS

# Install 'bhmbasket' in R:
install.packages('bhmbasket', repos = c('https://boehringer-ingelheim.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/boehringer-ingelheim/bhmbasket/issues

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC - binary JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS. JAGS was written with three aims in mind: * To have an engine for the BUGS language that runs on Unix * To be extensible, allowing users to write their own functions, distributions and samplers. * To be a plaftorm for experimentation with ideas in Bayesian modelling This package contains the 'jags' binary as well as the associated shared library modules loaded by the binary.
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

jagscpp

5.96 score 1 stars 3 packages 17 scripts 654 downloads 25 exports 11 dependencies

Last updated from:d9d79abcc8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK171
source / vignettesOK217
linux-release-x86_64OK172
macos-release-arm64OK92
macos-oldrel-arm64OK120
windows-develOK133
windows-releaseOK134
windows-oldrelOK109
wasm-releaseOK142

Exports:combinePriorParameterscontinueRecruitmentcreateTrialgetAverageNSubjectsgetEstimatesgetGoDecisionsgetGoProbabilitiesgetMuVargetPriorParametersinvLogitloadAnalysesloadScenarioslogitnegateGoDecisionsperformAnalysessaveAnalysessaveScenariosscaleRoundListsetPriorParametersBerrysetPriorParametersExNexsetPriorParametersExNexAdjsetPriorParametersPooledsetPriorParametersStratifiedsetPriorParametersStratifiedMixsimulateScenarios

Dependencies:backportscheckmatecodacodetoolsdigestdoRNGforeachiteratorslatticerjagsrngtools

Reproducing Parts of Neuenschwander et al. (2016)

Rendered fromreproduceExNex.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2022-01-07
Started: 2021-09-28

Running bhmbasket on HPC

Rendered fromRunning_bhmbasket_on_HPC.Rmdusingknitr::rmarkdownon May 14 2026.

Last update: 2022-02-14
Started: 2022-01-07

Readme and manuals

Help Manual

Help pageTopics
combinePriorParameterscombinePriorParameters
continueRecruitmentcontinueRecruitment
createTrialcreateTrial
getAverageNSubjectsgetAverageNSubjects
getEstimatesgetEstimates
getGoDecisionsgetGoDecisions
getGoProbabilitiesgetGoProbabilities
getMuVargetMuVar
getPriorParametersgetPriorParameters
invLogitinvLogit
loadAnalysesloadAnalyses
loadScenariosloadScenarios
logitlogit
negateGoDecisionsnegateGoDecisions
performAnalysesperformAnalyses
saveAnalysessaveAnalyses
saveScenariossaveScenarios
scaleRoundListscaleRoundList
setPriorParametersBerrysetPriorParametersBerry
setPriorParametersExNexsetPriorParametersExNex
setPriorParametersExNexAdjsetPriorParametersExNexAdj
setPriorParametersPooledsetPriorParametersPooled
setPriorParametersStratifiedsetPriorParametersStratified
setPriorParametersStratifiedMixsetPriorParametersStratifiedMix
simulateScenariossimulateScenarios