Skip to content

BFF

Bayes Factor Functions

v4.5.0 · Nov 5, 2025 · GPL (>= 2)

Description

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.

Downloads

334

Last 30 days

11609th

875

Last 90 days

5.4K

Last year

Trend: +10.2% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 ERROR
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'BFF_vignette.Rmd' using rmarkdown
! Package pdftex.def Error: File `9ed6c94a545480e10b1fc2cc5f2ef644a690b939.pdf'
 not found: using draft setting.

Error: processing vignette 'BFF_vignette.Rmd' failed with diagnostics:
LaTeX failed to compile D:/RCompile/CRANpkg/local/4.4/BFF.Rcheck/vign_test/BFF/vignettes/BFF_vignette.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See BFF_vignette.log for more info.
--- failed re-building 'BFF_vignette.Rmd'

SUMMARY: processing the following file failed:
  'BFF_vignette.Rmd'

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'BFF_vignette.Rmd' using rmarkdown
! Package pdftex.def Error: File `9ed6c94a545480e10b1fc2cc5f2ef644a690b939.pdf'
 not found: using draft setting.

Error: processing vignette 'BFF_vignette.Rmd' fail
...[truncated]...
ihui.org/tinytex/r/#debugging for debugging tips. See BFF_vignette.log for more info.
--- failed re-building 'BFF_vignette.Rmd'

SUMMARY: processing the following file failed:
  'BFF_vignette.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 Matrix gsl rlang BFF

Version History

new 4.5.0 Mar 10, 2026
updated 4.5.0 ← 4.4.2 diff Nov 5, 2025
updated 4.4.2 ← 4.2.1 diff May 19, 2025
updated 4.2.1 ← 3.0.1 diff Jul 27, 2024
updated 3.0.1 ← 2.7.0 diff Nov 3, 2023
updated 2.7.0 ← 1.0.0 diff Oct 23, 2023
new 1.0.0 Sep 12, 2022