BFpack: Flexible Bayes Factor Testing of Scientific Theories in R

Open Access
Authors
  • J. Mulder
  • D.R. Williams
  • X. Gu
  • A. Tomarken
  • F. Böing-Messing
  • A. Olsson-Collentine
  • M. Meijerink
  • J. Menke
  • R. van Aert
  • J.-P. Fox
  • H. Hoijtink
  • Y. Rosseel
  • E.-J. Wagenmakers
  • C. van Lissa
Publication date 11-2021
Journal Journal of Statistical Software
Volume | Issue number 100 | 18
Number of pages 63
Organisations
  • Faculty of Social and Behavioural Sciences (FMG) - Psychology Research Institute (PsyRes)
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, (multivariate) 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.
Document type Article
Note With supplementary files
Language English
Published at https://doi.org/10.18637/jss.v100.i18
Published at https://arxiv.org/abs/1911.07728
Downloads
v100i18 (Final published version)
Supplementary materials
Permalink to this page
Back