BFpack: Flexible Bayes Factor Testing of Scientific Theories in R

Joris Mulder*, Donald R. Williams, Xin Gu, Andrew Tomarken, Florian Böing-Messing, Anton Olsson-Collentine, Marlyne Meijerink, Janosch Menke, Robbie van Aert, Jean Paul Fox, Herbert Hoijtink, Yves Rosseel, Eric Jan Wagenmakers, Caspar van Lissa

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

31 Citations (Scopus)
8 Downloads (Pure)

Abstract

There have been considerable methodological developments of Bayes factors for hypothesis testing in the social and behavioral sciences, and related fields. This development is due to the flexibility of the Bayes factor for testing multiple hypotheses simultaneously, the ability to test complex hypotheses involving equality as well as order constraints on the parameters of interest, and the interpretability of the outcome as the weight of evidence provided by the data in support of competing scientific theories. The available software tools for Bayesian hypothesis testing are still limited however. In this paper we present a new R package called BFpack that contains functions for Bayes factor hypothesis testing for the many common testing problems. The software includes novel tools for (i) Bayesian exploratory testing (e.g., zero vs positive vs negative effects), (ii) Bayesian confirmatory testing (competing hypotheses with equality and/or order constraints), (iii) common statistical analyses, such as linear regression, generalized linear models, (multi-variate) analysis of (co)variance, correlation analysis, and random intercept models, (iv) using default priors, and (v) while allowing data to contain missing observations that are missing at random.

Original languageEnglish
Pages (from-to)1-63
JournalJournal of statistical software
Volume100
Issue number18
DOIs
Publication statusPublished - 30 Nov 2021

Keywords

  • Bayes factors
  • Equality/order constrained hypotheses
  • Hypothesis testing
  • R

Fingerprint

Dive into the research topics of 'BFpack: Flexible Bayes Factor Testing of Scientific Theories in R'. Together they form a unique fingerprint.

Cite this