bayprior: Bayesian Prior Elicitation and Diagnostics for Clinical Trials

A toolkit for constructing, validating, and justifying Bayesian priors in clinical trial settings. Implements expert elicitation via quantile matching, the roulette method, and moment matching across six distribution families, linear and logarithmic expert pooling, prior-data conflict diagnostics including the Box p-value, surprise index, information divergence, and Mahalanobis distance, sensitivity analyses with tornado and influence heatmap plots, sceptical, robust, and power priors, and automated prior justification reports. Includes a fully modular 'Shiny' application for interactive use. Methods based on O'Hagan et al. (2006, ISBN:9780470029886), Box (1980) <doi:10.2307/2982063>, Oakley and O'Hagan (2010) <https://tonyohagan.co.uk/shelf/>, Schmidli et al. (2014) <doi:10.1111/biom.12242>, Ibrahim and Chen (2000) <doi:10.1214/ss/1009212673>, Spiegelhalter et al. (1994) <doi:10.2307/2983527>.

Version: 0.2.12
Depends: R (≥ 4.1.0)
Imports: cli (≥ 3.6.0), config (≥ 0.3.1), dplyr (≥ 1.1.0), DT (≥ 0.27), ggplot2 (≥ 3.4.0), glue (≥ 1.6.2), golem (≥ 0.4.1), plotly (≥ 4.10.1), purrr (≥ 1.0.0), rlang (≥ 1.2.0), shiny (≥ 1.7.4), shinycssloaders (≥ 1.0.0), shinydashboard (≥ 0.7.2), shinyjs (≥ 2.1.0), shinyWidgets (≥ 0.7.6), stats
Suggests: htmlwidgets (≥ 1.5.4), knitr (≥ 1.40), patchwork (≥ 1.1.0), quarto (≥ 1.4), rmarkdown (≥ 2.20), shinytest2 (≥ 0.3.1), spelling (≥ 2.2.0), testthat (≥ 3.0.0), vdiffr (≥ 1.0.0), withr (≥ 2.5.0)
Published: 2026-06-03
DOI: 10.32614/CRAN.package.bayprior (may not be active yet)
Author: Ndoh Penn ORCID iD [aut, cre]
Maintainer: Ndoh Penn <ndohpenn9 at gmail.com>
BugReports: https://github.com/ndohpenngit/bayprior/issues
License: GPL-3
URL: https://github.com/ndohpenngit/bayprior
NeedsCompilation: no
SystemRequirements: Quarto CLI (>= 1.5, https://quarto.org)
Language: en-GB
Citation: bayprior citation info
Materials: README, NEWS
CRAN checks: bayprior results

Documentation:

Reference manual: bayprior.html , bayprior.pdf
Vignettes: Introduction to bayprior (source, R code)
Prior-Data Conflict Diagnostics (source, R code)
Prior Elicitation Methods (source, R code)
Regulatory Reporting (source, R code)
Robust, Sceptical, and Power Priors (source, R code)
Sensitivity Analysis (source, R code)

Downloads:

Package source: bayprior_0.2.12.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): bayprior_0.2.12.tgz, r-oldrel (arm64): bayprior_0.2.12.tgz, r-release (x86_64): bayprior_0.2.12.tgz, r-oldrel (x86_64): bayprior_0.2.12.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=bayprior to link to this page.