Package: bayprior Title: Bayesian Prior Elicitation, Diagnostics, and Regulatory Reporting Version: 0.5.0 Authors@R: person("Ndoh", "Penn", email = "ndohpenn9@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0009-0003-9054-465X")) Description: 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 (computed from the exact prior predictive distribution where one has a closed form), 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) , Greenland (2023) , Oakley and O'Hagan (2010) , Schmidli et al. (2014) , Neuenschwander et al. (2010) , Roever et al. (2021) , Ibrahim and Chen (2000) , Spiegelhalter et al. (1994) . License: GPL-3 URL: https://github.com/ndohpenngit/bayprior BugReports: https://github.com/ndohpenngit/bayprior/issues 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) VignetteBuilder: knitr Config/Needs/vignettes: knitr, rmarkdown, rstanarm, brms Config/testthat/edition: 3 Encoding: UTF-8 Language: en-GB Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3 SystemRequirements: Quarto CLI (>= 1.5, https://quarto.org) Config/pak/sysreqs: cmake make libicu-dev libuv1-dev libssl-dev zlib1g-dev Repository: https://ndohpenngit.r-universe.dev Date/Publication: 2026-10-24 00:15:32 UTC RemoteUrl: https://github.com/ndohpenngit/bayprior RemoteRef: HEAD RemoteSha: 04f254c996b8d6b20283c5de0c7f8c35e38f841a NeedsCompilation: no Packaged: 2026-10-24 00:57:29 UTC; root Author: Ndoh Penn [aut, cre] (ORCID: ) Maintainer: Ndoh Penn