Package: BFF 4.3.0
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:
BFF_4.3.0.tar.gz
BFF_4.3.0.zip(r-4.5)BFF_4.3.0.zip(r-4.4)BFF_4.3.0.zip(r-4.3)
BFF_4.3.0.tgz(r-4.4-any)BFF_4.3.0.tgz(r-4.3-any)
BFF_4.3.0.tar.gz(r-4.5-noble)BFF_4.3.0.tar.gz(r-4.4-noble)
BFF_4.3.0.tgz(r-4.4-emscripten)BFF_4.3.0.tgz(r-4.3-emscripten)
BFF.pdf |BFF.html✨
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
Last updated 3 months agofrom:09636c217c. Checks:ERROR: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | FAIL | Nov 14 2024 |
R-4.5-win | ERROR | Nov 14 2024 |
R-4.5-linux | ERROR | Nov 14 2024 |
R-4.4-win | ERROR | Nov 14 2024 |
R-4.4-mac | ERROR | Nov 14 2024 |
R-4.3-win | ERROR | Nov 14 2024 |
R-4.3-mac | ERROR | Nov 14 2024 |
Exports:chi2_test_BFFdnlnmf_test_BFFis.BFFposterior_plotregression_test_BFFt_test_BFFz_test_BFF
Dependencies:clicolorspacefansifarverggplot2gluegslgtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
BFF Object | BFF.object |
chi2_test_BFF | chi2_test_BFF |
f_test_BFF | f_test_BFF |
Check whether x is a BFF object | is.BFF |
Non-local Normal Moment Distribution | dnlnm nlnm |
Plot Bayes Factor Function | plot.BFF |
Plot Prior and Posterior Distribution | posterior_plot |
Summarize BFF object | print.BFF |
regression_test_BFF | regression_test_BFF |
Summarize BFF object | summary.BFF |
t_test_BFF | t_test_BFF |
z_test_BFF | z_test_BFF |