Skip to content

BFF

5.0.0

Bayes Factor Functions

0packages depend
5.1Kdownloads / year
60.2%test coverage
13/13checks pass

Overview

About
Maintained by Rachael ShuddeFirst published 2022-09-137 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.38
60.2%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-30
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 174 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
87%
Return-value docs
100%
References docs
0%

Downloads

5.1K
CRAN downloads in the past year
Rank #8,595 · ~14/day · ~423/mo
Daily download trend is not available in this view yet.
33730 days
1.3K90 days
5.1K1 year
Compare downloads with other packages →
Also on346 r2u44 autocran

Repository

Repository
3Stars
0Forks
2Open issues
1Open PRs
0Releases
242Commits
3Contributors
242 commits · Last activity 2026-05-20 · 0% stars, 30d

Stars over time

2025-06-07 · 22026-07-07 · 3

Repository practices

Upstream repositoryBeta

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.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (7)
grDevicesggplot2MatrixgslstatsrlangDPQ
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (6)
Author, Maintainer
Author · added in 4.2.1
Author · added in 2.7.0
Author · added in 2.7.0
Author · added in 2.7.0
Listed in earlier versions (1)
no longer listed · 1.0.0
Package Timeline

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

  • 5.0.0Latest
    2026-05-17 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 4.5.0
    2025-11-06 · diff ↗
  • 4.4.2
    2025-05-20 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 4.2.1
    2024-07-28 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.0.1
    2023-11-04 · diff ↗
  • 2.7.0
    2023-10-24 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    2022-09-13
  • R
    R 4.2.0 released · 2022-04-22

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
Report a problem with this page →