Package: BFF 4.4.1

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.

Authors:Rachael Shudde [aut, cre], František Bartoš [aut], Saptati Datta [aut], Riana Guha [aut], Sandy Pramanik [aut], Valen Johnson [aut]

BFF_4.4.1.tar.gz
BFF_4.4.1.zip(r-4.7)BFF_4.4.1.zip(r-4.6)BFF_4.4.1.zip(r-4.5)
BFF_4.4.1.tgz(r-4.6-any)BFF_4.4.1.tgz(r-4.5-any)
BFF_4.4.1.tar.gz(r-4.7-any)BFF_4.4.1.tar.gz(r-4.6-any)
BFF_4.4.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BFF/json (API)

# Install 'BFF' in R:
install.packages('BFF', repos = c('https://rshudde.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rshudde/bff/issues

On CRAN:

Conda:

4.48 score 3 stars 5 scripts 263 downloads 8 exports 20 dependencies

Last updated from:aa9fead2c4. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE137
source / vignettesOK200
linux-release-x86_64NOTE142
macos-release-arm64NOTE127
macos-oldrel-arm64NOTE180
windows-develNOTE78
windows-releaseNOTE78
windows-oldrelNOTE90
wasm-releaseOK110

Exports:chi2_test_BFFdnlnmf_test_BFFis.BFFposterior_plotregression_test_BFFt_test_BFFz_test_BFF

Dependencies:clicpp11farverggplot2gluegslgtableisobandlabelinglatticelifecycleMatrixR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

BFF

Rendered fromBFF_vignette.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2024-08-04
Started: 2023-10-16