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
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)
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
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