Skip to content
/ BFDA Public
forked from nicebread/BFDA

An R package for Bayes Factor Design Analysis

Notifications You must be signed in to change notification settings

chsquare/BFDA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

BFDA Bayes factor design analysis

Installation

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.

How to use the BFDA package?

  1. Read our paper:

    Schönbrodt, F. D. & Wagenmakers, E.-J. (submitted). Bayes Factor Design Analysis: Planning for compelling evidence. Retrieved from http://ssrn.com/abstract=2722435.

  2. Read the additional manual.

Sequential Design

Extending the BFDA package

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:

  1. Add a new file with 4 functions:
  • sample.function
  • select.function
  • BF.test.function
  • freq.test.function

Replace "function" with the test name, e.g.: sample.ANOVA etc.

  1. Add the new "type" (e.g., "ANOVA") to the print.BFDA function in R/1-Simulation.R
  2. Add the new "type" (e.g., "ANOVA") to the BFDA.sanityCheck function in R/10-SanityChecks.R
  3. Do a lot of testing!

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 me know. The preferred workflow would be that you fork the Github project, implement the test, and send me a pull request. If everything works as intended, we can add the test to the main project.

About

An R package for Bayes Factor Design Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 95.8%
  • R 4.2%