Learn R Programming

BayesPower (version 1.0.1)

Sample Size and Power Calculation for Bayesian Testing with Bayes Factor

Description

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) .

Copy Link

Version

Install

install.packages('BayesPower')

Monthly Downloads

158

Version

1.0.1

License

GPL (>= 3)

Maintainer

Tsz Keung Wong

Last Published

October 29th, 2025

Functions in BayesPower (1.0.1)

BFpower.t.test_one_sample

Sample size determination for one-sample Bayesian t-test
BFpower.t.test_two_sample

Sample size determination for two-sample Bayesian t-test
BF10.props

Bayes factor for a Bayesian test of two proportions
BF10.f.test

Bayes factor for a Bayesian F-test
BFpower.props

Sample size determination for Bayesian test of two proportions
BFpower.f

Sample size determination for Bayesian F-test
BF10.bin.test

Bayes factor for a Bayesian one-proportion test
BF10.cor

Bayes factor for a Bayesian correlation test
BF10.t.test.one_sample

Bayes factor for one-sample Bayesian t-test
BFpower.bin

Sample size determination for Bayesian one-proportion test
BFpower.cor

Sample size determination for Bayesian correlation test
BF10.t.test.two_sample

Bayes factor for two-sample Bayesian t-test
BayesPower_BayesFactor

Launch the BayesPower Shiny Application