Sample-size determination for the Bayesian t test and Welch's test using the approximate adjusted fractional Bayes factor

Publication date

2021

Authors

Fu, QianraoISNI 0000000521257857
Hoijtink, HerbertISNI 0000000389542756
Moerbeek, MirjamISNI 0000000388211488

Editors

Advisors

Supervisors

Document Type

Article
Open Access logo

License

cc_by

Abstract

When two independent means μ1 and μ2 are compared, H0 : μ1 = μ2, H1 : μ1≠μ2, and H2 : μ1 > μ2 are the hypotheses of interest. This paper introduces the R package SSDbain, which can be used to determine the sample size needed to evaluate these hypotheses using the approximate adjusted fractional Bayes factor (AAFBF) implemented in the R package bain. Both the Bayesian t test and the Bayesian Welch's test are available in this R package. The sample size required will be calculated such that the probability that the Bayes factor is larger than a threshold value is at least η if either the null or alternative hypothesis is true. Using the R package SSDbain and/or the tables provided in this paper, psychological researchers can easily determine the required sample size for their experiments.

Keywords

Bayes factor, Bayesian t test, Bayesian Welch’s test, SSDbain, Sample-size determination ·

Citation

Fu, Q, Hoijtink, H & Moerbeek, M 2021, 'Sample-size determination for the Bayesian t test and Welch's test using the approximate adjusted fractional Bayes factor', Behavior Research Methods, vol. 53, pp. 139-152. https://doi.org/10.3758/s13428-020-01408-1