Package: BayesianQDM 1.0.1

Gosuke Homma

BayesianQDM: Bayesian Quantitative Decision-Making Framework for Binary, Continuous and Time-to-Event Endpoints

Bayesian quantitative decision-making for proof-of-concept clinical trials with Go, NoGo and Gray decisions. A study is specified by its sample sizes, conjugate prior distributions, external data borrowed through power priors, a concurrent, external, hypothetical or fixed control group, and a decision criterion based on the posterior or posterior predictive probability of the treatment effect. The package computes the decision for observed data, the operating characteristics of a design under scenarios for the true parameters, the decision thresholds that control the probabilities of false Go and false NoGo decisions, and the observed data that lead to each decision. One or two binary endpoints (Beta-binomial and Dirichlet-multinomial models), one or two continuous endpoints (Normal-Inverse-chi-squared and Normal-Inverse-Wishart models) and one time-to-event endpoint evaluated by the milestone survival probability or the hazard ratio (exponential model with Gamma priors) are supported, with larger or smaller effects as favorable. The posterior distributions have closed forms, so Markov chain Monte Carlo (MCMC) sampling is not needed; the probabilities are computed from closed-form distribution functions, by exact summation, numerical integration, a moment-matching approximation or Monte Carlo simulation, with the main computations in C++. See Kang, Yamaguchi, and Han (2026) <doi:10.1080/10543406.2026.2655410> for the methodological framework.

Authors:Gosuke Homma [aut, cre], Yusuke Yamaguchi [aut]

BayesianQDM_1.0.1.tar.gz
BayesianQDM_1.0.1.zip(r-4.7-x86_64)BayesianQDM_1.0.1.zip(r-4.7-arm64)BayesianQDM_1.0.1.zip(r-4.6-x86_64)BayesianQDM_1.0.1.zip(r-4.6-arm64)
BayesianQDM_1.0.1.tar.gz(r-4.7-arm64)BayesianQDM_1.0.1.tar.gz(r-4.7-x86_64)BayesianQDM_1.0.1.tar.gz(r-4.6-arm64)BayesianQDM_1.0.1.tar.gz(r-4.6-x86_64)
BayesianQDM_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BayesianQDM/json (API)

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

Bug tracker:https://github.com/gosukehommaex/bayesianqdm/issues

Pkgdown/docs site:https://gosukehommaex.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.85 score 9 scripts 386 downloads 33 exports 18 dependencies

Last updated from:5426452883. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK187
linux-devel-x86_64OK181
source / vignettesOK255
linux-release-arm64OK170
linux-release-x86_64OK157
windows-devel-arm64OK268
windows-devel-x86_64OK218
windows-release-arm64OK298
windows-release-x86_64OK183
wasm-releaseOK119

Exports:borrowcellprob_binary2conduct_ttecriterion_posteriorcriterion_predictivedata_binarydata_binary2data_continuousdata_continuous2data_ttedesign_binarydesign_binary2design_continuousdesign_continuous2design_ttehypotheticalpbetabinomdiffpbetadiffphazardratioprior_betaprior_dirichletprior_gammaprior_niwprior_nixprior_vaguepsurvdiffptdiffqdm_boundaryqdm_calibrateqdm_decideqdm_ocqdm_regionsrdirichlet

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerRcpprlangS7scalesvctrsviridisLitewithr

Migrating from version 0.1.0
Correspondence of the functions | Correspondence of the arguments | Posterior probability for observed data | Operating characteristics | Calibration of the thresholds | External data and hypothetical controls | Changes in the results

Last update: 2026-10-30
Started: 2026-10-30

Overview of BayesianQDM
Decisions in a proof-of-concept study | Specifying a study | A first example | Plots | Endpoints and computation | Random numbers | Validation | Further reading | References

Last update: 2026-10-30
Started: 2026-04-21

Single binary endpoint
Model | Decision for observed data | Forms of the control group | External control data | Hypothetical control | Fixed control | Predictive criterion | Operating characteristics | Decision boundary | Smaller effects as favorable | Calibration of the thresholds | Reference

Last update: 2026-10-30
Started: 2026-04-21

Single continuous endpoint
Model | Decision for observed data | Prior distributions and external data | Hypothetical control | Fixed control | Predictive criterion | Operating characteristics | Decision boundary | Calibration of the thresholds | References

Last update: 2026-10-30
Started: 2026-04-21

Time-to-event endpoint
Model | Decision for observed data | Conduct of the study | Predictive criterion | Operating characteristics | Calibration of the thresholds | Decision boundary | Hazard ratio | Reference

Last update: 2026-10-30
Started: 2026-10-30

Two binary endpoints
Model | Regions and criteria | Decision for observed data | External data and hypothetical controls | Efficacy and safety endpoints | Operating characteristics | Calibration of the thresholds | Reference

Last update: 2026-10-30
Started: 2026-04-21

Two continuous endpoints
Model | Decision for observed data | Hypothetical control | Fixed control | Operating characteristics | Decision boundary | Calibration of the thresholds | References

Last update: 2026-10-30
Started: 2026-04-21

Readme and manuals

Help Manual

Help pageTopics
External data borrowed through a power priorborrow
Joint cell probabilities of two binary endpointscellprob_binary2
Conduct of a study with a time-to-event endpointconduct_tte
Decision criterion based on posterior probabilitycriterion_posterior
Decision criterion based on posterior predictive probabilitycriterion_predictive
Binary endpoint datadata_binary
Data for two binary endpointsdata_binary2
Continuous endpoint datadata_continuous
Data for two continuous endpointsdata_continuous2
Time-to-event endpoint datadata_tte
Design with one binary endpointdesign_binary
Design with two binary endpointsdesign_binary2
Design with one continuous endpointdesign_continuous
Design with two continuous endpointsdesign_continuous2
Design with one time-to-event endpointdesign_tte
Format an external data specificationformat.qdm_borrow
Format a decision boundaryformat.qdm_boundary
Format a calibrationformat.qdm_calibration
Format the conduct of a studyformat.qdm_conduct
Format a decision criterionformat.qdm_criterion
Format a data specificationformat.qdm_data
Format a decisionformat.qdm_decision
Format a designformat.qdm_design
Format a hypothetical control specificationformat.qdm_hypothetical
Format a prior specificationformat.qdm_prior
Hypothetical control for an uncontrolled studyhypothetical
Distribution function of the difference of two Beta-binomial proportionspbetabinomdiff
Distribution function of the difference of two Beta variablespbetadiff
Distribution function of the ratio of two hazardsphazardratio
Plot a decision boundaryplot.qdm_boundary
Plot a calibrationplot.qdm_calibration
Plot operating characteristicsplot.qdm_oc
Print an external data specificationprint.qdm_borrow
Print a decision boundaryprint.qdm_boundary
Print a calibrationprint.qdm_calibration
Print the conduct of a studyprint.qdm_conduct
Print a decision criterionprint.qdm_criterion
Print a data specificationprint.qdm_data
Print a decisionprint.qdm_decision
Print a designprint.qdm_design
Print a hypothetical control specificationprint.qdm_hypothetical
Print operating characteristicsprint.qdm_oc
Print a prior specificationprint.qdm_prior
Beta prior for a response rateprior_beta
Dirichlet prior for two binary endpointsprior_dirichlet
Gamma prior for a hazard rateprior_gamma
Normal-Inverse-Wishart prior for two continuous endpointsprior_niw
Normal-Inverse-chi-squared prior for a continuous endpointprior_nix
Vague prior for continuous endpointsprior_vague
Distribution function of the difference of two milestone survival probabilitiespsurvdiff
Distribution function of the difference of two t variablesptdiff
Decision boundary of a designqdm_boundary
Calibration of the decision thresholdsqdm_calibrate
Go/NoGo decision for observed dataqdm_decide
Operating characteristics of a designqdm_oc
Region numbers for two endpointsqdm_regions
Random generation from the Dirichlet distributionrdirichlet