Sample Size and Power Calculation for Bayesian Testing with Bayes Factor

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


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("BayesPower")

1.0.5 by Tsz Keung Wong, 3 months ago


Report a bug at https://github.com/tkWong3004/BayesPower/issues


Browse source code at https://github.com/cran/BayesPower


Authors: Tsz Keung Wong [aut, cre] , Samuel Pawel [aut] , Jorge Tendeiro [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports rlang, shiny, gsl, Rcpp, ExtDist, ggplot2, patchwork, rmarkdown, glue, hypergeo, rootSolve, shinyWidgets, grDevices, tidyr, scales, httpuv, utils

Suggests testthat

Linking to Rcpp, BH


See at CRAN