BFF
5.0.0Bayes Factor Functions
Overview
Bayes factors represent the ratio of probabilities assigned to data by competing scientific hypotheses. However, one drawback of Bayes factors is their dependence on prior specifications that define null and alternative hypotheses. Additionally, there are challenges in their computation. To address these issues, we define Bayes factor functions (BFFs) directly from common test statistics. BFFs express Bayes factors as a function of the prior densities used to define the alternative hypotheses. These prior densities are centered on standardized effects, which serve as indices for the BFF. Therefore, BFFs offer a summary of evidence in favor of alternative hypotheses that correspond to a range of scientifically interesting effect sizes. Such summaries remove the need for arbitrary thresholds to determine "statistical significance." BFFs are available in closed form and can be easily computed from z, t, chi-squared, and F statistics. They depend on hyperparameters "r" and "tau^2", which determine the shape and scale of the prior distributions defining the alternative hypotheses. Plots of BFFs versus effect size provide informative summaries of hypothesis tests that can be easily aggregated across studies.
Install
Health
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-3013 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 87%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Issues over time
PRs over time
Repository practices
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/rshudde/bff on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
7 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2022-09-13
- Total releases
- 7 / 4 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.10
- Download size
- 250 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet