bayprior
0.2.12Bayesian Prior Elicitation and Diagnostics for Clinical Trials
Overview
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.
Install
Health
- OK2026-06-0912 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0811 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-06-046 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- References docs
- 23%
Downloads
Repository
Stars over time
Releases over time
Issues over time
PRs over time
Repository practices
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/ndohpenngit/bayprior on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 3.0 median / 33 max
- Test cases
- 168 / 0.41 per code line
- System requirements
- 2 external
Test coverage
Line coverage
27%
Expression
43.5%
Tests / Examples
26.7% / 20% ex
Functions
92 23 exported
Complexity
5.6 avg / 33 max
Call network
92 nodes / 114 edges
Call graph
Open call graph →Lowest coverage
92 functions| Function | Cyclo | Coverage |
|---|---|---|
| as_prior exp | 1 | 0% |
| prior_report exp | 25 | 0% |
| run_app exp | 1 | 0% |
| .apply_plotly_theme | 3 | 0% |
| .check_item | 2 | 0% |
| .eval_density | 2 | 0% |
People & History
1 release. R releases are shown for context.
- 0.2.12Latest2026-06-03 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-03
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet