Sample-size determination for the Bayesian t test and Welch’s test using the approximate adjusted fractional Bayes factor
Qianrao Fu, Herbert Hoijtink, Mirjam Moerbeek
Abstract
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.
Topics & Concepts
Bayes factorSample size determinationStatisticsBayesian probabilityBayes' theoremSample (material)MathematicsR packageStatistical hypothesis testingNull hypothesisComputer sciencePhysicsThermodynamicsStatistical Methods and Bayesian InferenceStatistical Methods in Clinical TrialsStatistical Distribution Estimation and Applications