Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ BFF Public

❗ This is a read-only mirror of the CRAN R package repository. BFF — Bayes Factor Functions. Homepage: https://github.com/rshudde/BFF Report bugs for this package: https://github.com/rshudde/BFF/issues

Notifications You must be signed in to change notification settings

cran/BFF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BFF

Bayes Factor Functions

CRAN_Status_Badge

This package provides the Bayes Factor values for different effect sizes from 0 to 1. A small effect size is usually considered from 0.2 to 0.5, medium effect sizes from 0.5 to 0.8, and large effect sizes as greater than 0.8.

Using this package is very similar to using the familiar t, z, chi^2, and F tests in R. You will need the same information - the test statistic, degrees of freedom, and sample size. A graph is produced that shows the BFF curve over the different effect sizes.

For evaluating evidence from multiple studies (see 'Bayes factor functions', 2023 (arxiv)), the parameter 'r' can also be set. The default value for r is 1, but 'r' can be suggested that maximizes the bayes factor at each tau by setting the 'maximization' argument in each test to "TRUE."

Installation

The R package 'BFF' is available from CRAN, use the commands below to install the most recent Github version.

# Plain installation
devtools::install_github("rshudde/BFF") # BFF package

Example

library(BFF)

z_BFF_one = z_test_BFF(z_stat = 2.5, n = 50) #one sample z-test
z_BFF_two = z_test_BFF(z_stat = 2.5, one_sample = FALSE, n1 = 50, n2 = 50) #two sample z-test

plot(z_BFF_two) #to view the plot of BFF vs the maximized omega (here for the two sample z-test)

About

❗ This is a read-only mirror of the CRAN R package repository. BFF — Bayes Factor Functions. Homepage: https://github.com/rshudde/BFF Report bugs for this package: https://github.com/rshudde/BFF/issues

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages