Skip to content

bayprior

0.2.12

Bayesian Prior Elicitation and Diagnostics for Clinical Trials

0packages depend
709downloads / year
26.7%test coverage
13/13checks pass

Overview

About
Maintained by Ndoh PennFirst published 2026-06-031 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: 3.9 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.41
26.7%
Coverage · measured lines
100%
Documentation · exports
16
Dependencies · direct
Check history
  • 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,128 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
100%
References docs
23%

Downloads

709
CRAN downloads in the past year
Rank #16,041 · ~2/day · ~59/mo
Daily download trend is not available in this view yet.
33330 days
70990 days
7091 year
Compare downloads with other packages →
Also on2 r2u19 autocran

Repository

Repository
1Stars
0Forks
3Open issues
0Open PRs
11Releases
158Commits
1Contributors
bayesianrshinyr-packageclinical-trialspharmareporting
158 commits · Last activity 2026-06-16 · 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 5 families in the upstream repository

Checks run against github.com/ndohpenngit/bayprior on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
Quarto project
Lint, format, editor (1)
RStudio project
Show all practices
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

Code Composition
R 9,486 (72%)Vignettes 2,166 (17%)Rd 1,460 (11%)
Code characteristics
Object systems
S38
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

Loading call graph…

Lowest coverage

92 functions
FunctionCycloCoverage
as_prior exp10%
prior_report exp250%
run_app exp10%
.apply_plotly_theme30%
.check_item20%
.eval_density20%

People & History

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

1 release. R releases are shown for context.

  • 0.2.12Latest
    2026-06-03 · current release
  • R
    R 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
Report a problem with this page →