Sample Size and Power Calculation for Bayesian Testing with Bayes Factor
Launch the BayesPower Shiny Application
Bayes factor for a Bayesian one-proportion test
Bayes factor for a Bayesian correlation test
Bayes factor for a Bayesian F-test
Bayes factor for a Bayesian test of two proportions
Bayes factor for one-sample Bayesian t-test
Bayes factor for two-sample Bayesian t-test
Sample size determination for Bayesian one-proportion test
Sample size determination for Bayesian correlation test
Sample size determination for Bayesian F-test
Sample size determination for Bayesian test of two proportions
Sample size determination for one-sample Bayesian t-test
Sample size determination for two-sample Bayesian t-test
The goal of 'BayesPower' is to provide tools for Bayesian sample size determination and power analysis across a range of common hypothesis testing scenarios using Bayes factors. The main function, BayesPower_BayesFactor(), launches an interactive 'shiny' application for performing these analyses. The application also provides command-line code for reproducibility. Details of the methods are described in the tutorial by Wong, Pawel, and Tendeiro (2025) <doi:10.31234/osf.io/pgdac_v1>.