Department of Methodology and Statistics, Utrecht University, PO Box 80140, 3508 TC, Utrecht, The Netherlands.
Behav Res Methods. 2021 Feb;53(1):139-152. doi: 10.3758/s13428-020-01408-1.
When two independent means μ and μ are compared, H : μ = μ, H : μ≠μ, and H : μ > μ 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.
当比较两个独立的均值 μ 和 μ 时,感兴趣的假设包括 H: μ = μ、H: μ≠μ 和 H: μ > μ。本文介绍了 R 包 SSDbain,该包可使用 R 包 bain 中实现的近似调整分数贝叶斯因子(AAFBF)来确定评估这些假设所需的样本量。该 R 包同时提供了贝叶斯 t 检验和贝叶斯 Welch 检验。如果零假设或备择假设为真,计算所需的样本量,使得贝叶斯因子大于阈值的概率至少为 η。使用 R 包 SSDbain 和/或本文提供的表格,心理学研究人员可以轻松确定他们实验所需的样本量。