Giter Club home page Giter Club logo

replicationbf's Introduction

ReplicationBF -- R package to calculate Replication Bayes Factors

This package allows users to calculate Replication Bayes Factors for different scenarios. See Verhagen & Wagenmakers (2014) and Harms (2018) for reference.

Installation

The package is currently only available through this GitHub repository, so you can install it through devtools::install_github():

devtools::install_github('neurotroph/ReplicationBF', dependencies=TRUE)

Usage

The package provides two functions to calculate Replication Bayes factors for t- (RBF_ttest) and F-tests (RBF_Ftest) respectively.

t-Tests:

# Example 1 from Verhagen & Wagenmakers (2014)
# Using a Normal approximation to the original's posterior distribution
RBF_ttest(2.10, c(11, 11), 3.06, c(27, 28), method = "NormApprox")

# Using MCMC to draw samples from the original's posterior distribution
RBF_ttest(2.10, c(11, 11), 3.06, c(27, 28), method = "MCMC")

F-Tests:

RBF_Ftest(27.0, c(3, 48), 52, 3.2, c(3, 33), 37)

References

  • Harms, C. (in press). A Bayes Factor for Replications of ANOVA Results. The American Statistician. Retrieved from http://arxiv.org/abs/1611.09341
  • Verhagen, J., & Wagenmakers, E.-J. (2014). Bayesian tests to quantify the result of a replication attempt. Journal of Experimental Psychology: General, 143(4), 1457โ€“1475. http://doi.org/10.1037/a0036731

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.