bayes4psy -- an Open Source R Package for Bayesian Statistics in Psychology

Jure Demšar,Grega Repovš,Erik Štrumbelj
DOI: https://doi.org/10.48550/arXiv.1907.01952
2019-07-03
Abstract:Research in psychology generates interesting data sets and unique statistical modelling tasks. However, these tasks, while important, are often very specific, so appropriate statistical models and methods cannot be found in accessible Bayesian tools. As a result, the use of Bayesian methods is limited to those that have the technical and statistical fundamentals that are required for probabilistic programming. Such knowledge is not part of the typical psychology curriculum and is a difficult obstacle for psychology students and researchers to overcome. The goal of the bayes4psy package is to bridge this gap and offer a collection of models and methods to be used for data analysis that arises from psychology experiments and as a teaching tool for Bayesian statistics in psychology. The package contains Bayesian t-test and bootstrapping and models for analyzing reaction times, success rates, and colors. It also provides all the diagnostic, analytic and visualization tools for the modern Bayesian data analysis workflow.
Applications,Mathematical Software,Methodology
What problem does this paper attempt to address?
This paper attempts to address the challenges faced in using Bayesian methods for data analysis in psychological research. Specifically, the paper points out that although the application of Bayesian data analysis in natural and social sciences is increasing, researchers and students in the field of psychology often lack the necessary basic statistical and technical knowledge, which limits their effective use of Bayesian methods. These problems are mainly reflected in the following aspects: 1. **Technical Barriers**: Bayesian methods usually require complex technical knowledge, such as the use of probabilistic programming languages, which is a difficult - to - overcome obstacle for most psychology students and researchers. 2. **Insufficient Statistical Knowledge**: The statistical basis required by Bayesian methods is not included in typical psychology courses, resulting in many psychology researchers being unable to effectively apply these methods. 3. **Data Specificity**: Data sets generated by psychological experiments and statistical modelling tasks are often very specific, and existing Bayesian tools may not be able to provide models and methods suitable for these specific tasks. To address these challenges, the paper introduces the `bayes4psy` package, an open - source R package specifically designed for psychological research. The main objectives of this package are: - **Lowering the Technical Threshold**: By providing pre - compiled models and methods, users can perform Bayesian data analysis without having specialized software or programming skills. - **Providing Rich Models and Tools**: It contains multiple Bayesian models, such as Bayesian t - tests, bootstrapping, reaction time analysis, success rate analysis, and color analysis, as well as diagnostic, analysis, and visualization tools for modern Bayesian data analysis. - **Promoting Teaching**: As a tool for teaching Bayesian statistics in the field of psychology, it helps students and researchers better understand and apply Bayesian methods. Through these functions, the `bayes4psy` package aims to bridge the technical and knowledge gaps in the application of Bayesian methods in psychological research and improve the quality and reliability of psychological research.