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, meta-analytic-predictive (MAP) priors derived from historical trials, prior-data conflict diagnostics including the Box p-value (with an exact prior predictive option for selected prior and data combinations), an exploratory surprisal (S-value) companion to it, 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>, Greenland (2023) <doi:10.1111/sjos.12625>, Oakley and O'Hagan (2010) <https://tonyohagan.co.uk/shelf/>, Schmidli et al. (2014) <doi:10.1111/biom.12242>, Neuenschwander et al. (2010) <doi:10.1177/1740774509356002>, Roever et al. (2021) <doi:10.1002/jrsm.1475>, Ibrahim and Chen (2000) <doi:10.1214/ss/1009212673>, Spiegelhalter et al. (1994) <doi:10.2307/2983527>.
| Version: | 0.4.0 |
| 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: | brms, htmlwidgets (≥ 1.5.4), knitr (≥ 1.40), metafor (≥ 4.0.0), patchwork (≥ 1.1.0), quarto (≥ 1.4), rmarkdown (≥ 2.20), rstanarm, shinytest2 (≥ 0.3.1), spelling (≥ 2.2.0), testthat (≥ 3.0.0), vdiffr (≥ 1.0.0), withr (≥ 2.5.0) |
| Published: | 2026-10-10 |
| DOI: | 10.32614/CRAN.package.bayprior |
| Author: | Ndoh Penn |
| 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 |
| Package source: | bayprior_0.4.0.tar.gz |
| Windows binaries: | r-devel: bayprior_0.3.2.zip, r-release: bayprior_0.3.2.zip, r-oldrel: bayprior_0.3.2.zip |
| macOS binaries: | r-release (arm64): bayprior_0.3.2.tgz, r-oldrel (arm64): bayprior_0.3.2.tgz, r-release (x86_64): bayprior_0.3.2.tgz, r-oldrel (x86_64): bayprior_0.3.2.tgz |
| Old sources: | bayprior archive |
Please use the canonical form https://CRAN.R-project.org/package=bayprior to link to this page.