BFF: Bayes Factor Functions

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.

Version: 4.2.1
Depends: R (≥ 2.10)
Imports: grDevices, ggplot2, Matrix, gsl, stats, rlang
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, BSDA, vdiffr
Published: 2024-07-28
DOI: 10.32614/CRAN.package.BFF
Author: Rachael Shudde [aut, cre], František Bartoš [aut], Saptati Datta [aut], Riana Guha [aut], Sandy Pramanik [aut], Valen Johnson [aut]
Maintainer: Rachael Shudde <rachael.shudde at gmail.com>
BugReports: https://github.com/rshudde/BFF/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/rshudde/BFF
NeedsCompilation: no
Citation: BFF citation info
Materials: README
CRAN checks: BFF results

Documentation:

Reference manual: BFF.pdf
Vignettes: BFF_vignette

Downloads:

Package source: BFF_4.2.1.tar.gz
Windows binaries: r-devel: BFF_4.2.1.zip, r-release: BFF_4.2.1.zip, r-oldrel: BFF_4.2.1.zip
macOS binaries: r-release (arm64): BFF_4.2.1.tgz, r-oldrel (arm64): BFF_4.2.1.tgz, r-release (x86_64): BFF_4.2.1.tgz, r-oldrel (x86_64): BFF_4.2.1.tgz
Old sources: BFF archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=BFF to link to this page.