The BFDA package is not on CRAN yet, but you can install the development version from Github:
library(devtools)
install_github("nicebread/BFDA", subdir="package")
For installations on Windows the package requires R version 3.3.1 or higher.
If you use this package to compute and report your design analysis, please cite it as:
We compile a (non-exhaustive) list of papers that user BFDA in practice: A list of published examples
If you want to implement a new test (e.g., a BFDA for regression or ANOVAs): The BFDA package uses a rather modular system for creating new tests. For new tests, you need to:
sample.function
select.function
BF.test.function
freq.test.function
Replace “function” with the test name, e.g.: sample.ANOVA etc.
print.BFDA
function in
R/1-Simulation.R
BFDA.sanityCheck
function in R/10-SanityChecks.R
Probably it is easiest to take one of the existing test implementations
(e.g., R/t.between.R
or R/correlation.R
) and replace the name and
the content of the functions.
If you implement a new test, please let us know. The preferred workflow would be that you fork the Github project, implement the test, do a lot of testing, and send us a pull request. If everything works as intended, we can add the test to the main project.