Learn R Programming

BayesPower (version 1.0.2)

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

License

GPL (>= 3)

Maintainer

Tsz Keung Wong

Last Published

February 12th, 2026

Functions in BayesPower (1.0.2)

BF10.bin.test

Bayes Factor for a Bayesian One-Proportion Test
BF10.props

Bayes factor for comparing two proportions
BFpower.ttest.OneSample

Sample Size Determination for the One-Sample Bayesian t-Test
BayesPower_BayesFactor

Launch the BayesPower Shiny Application
BFpower.ttest.TwoSample

Sample Size Determination for the Two-Sample Bayesian t-Test
BF10.f.test

Bayes Factor for a Bayesian F-Test
BFpower.props

Sample Size Determination for the Bayesian test of two proportions
BF10.ttest.OneSample

Bayes Factor for a One-Sample Bayesian t-Test
BF10.ttest.TwoSample

Bayes Factor for Two-Sample Bayesian t-Test
BFpower.f.test

Sample Size Determination for the Bayesian F-test
BFpower.cor

Sample Size Determination for the Bayesian correlation test
BF10.cor

Bayes factor for a Bayesian correlation test
BFpower.bin

Sample Size Determination for the Bayesian one-proportion test