Bayes Factor Functions
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.â
InstallationThe R package âBFFâ is available from CRAN, use the commands below to install the most recent Github version.
```{r, eval = FALSE} # Plain installation devtools::install_github(ârshudde/BFFâ) # BFF package
Example
-------
```{r}
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)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4