Computation of Bayes Factors for Common Biomedical Designs
Overview
BAYesian inference for MEDical designs in R. Functions for the computation of Bayes factors for common biomedical research designs. Implemented are functions to test the equivalence (equiv_bf), non-inferiority (infer_bf), and superiority (super_bf) of an experimental group compared to a control group on a continuous outcome measure, as well as functions for simulating survival data and calculating a Bayes factor for Cox proportional hazards models. Bayes factors for these tests can be computed based on raw data or summary statistics.
- Added functionality for simulating data for Cox regression; coxph_data_sim().
- Added functionality for computing Bayes factor for Cox regression; coxph_bf().
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 2 earlier changesHide 2 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 8includes a package overview page
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 63%
Downloads
Repository
Stars over time
Releases over time
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/maxlinde/baymedr on 2026-10-21.
Dependencies
Installing baymedr adds 65 packages (32 with compiled code, 67 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.2Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.1.12021-03-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.1.02019-10-21
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-10-21
- Total releases
- 3 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 29 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("baymedr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.