Skip to content

bayprior

0.3.0

Bayesian Prior Elicitation and Diagnostics for Clinical Trials

0packages depend
961downloads / year
29.0%test coverage
13/13checks pass

Overview

About
Maintained by Ndoh PennFirst published 2026-06-032 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 5.5 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 0.42
29.0%
Coverage · measured lines
100%
Documentation · exports
16
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-04
    6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,123 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
100%
References docs
23%

Downloads

961
CRAN downloads in the past year
Rank #9,918 · ~3/day · ~80/mo
Daily download trend is not available in this view yet.
25830 days
96190 days
9611 year
Compare downloads with other packages →
Also on27 r2u24 autocran

Repository

Repository
1Stars
0Forks
2Open issues
0Open PRs
14Releases
223Commits
1Contributors
bayesianrshinyr-packageclinical-trialspharmareporting
223 commits · Last activity 2026-08-11 · 0% stars, 30d

Stars over time

2026-04-24 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/ndohpenngit/bayprior on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
Quarto project
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
Governance and community (1)
Issue templates
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.3.0Latest
    2026-07-30 · current release · diff ↗
  • 0.2.12
    2026-06-03
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-06-03
Total releases
2 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
3.6 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bayprior")
Penn, N. (2026). bayprior: Bayesian Prior Elicitation and Diagnostics for Clinical Trials (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.bayprior

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bayprior version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy