Learn R Programming

bfpwr (version 0.1.6)

Power and Sample Size Calculations for Bayes Factor Analysis

Description

Implements z-test, t-test, and normal moment prior Bayes factors based on summary statistics, along with functionality to perform corresponding power and sample size calculations as described in Pawel and Held (2025) .

Copy Link

Version

Install

install.packages('bfpwr')

Monthly Downloads

180

Version

0.1.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Samuel Pawel

Last Published

September 2nd, 2025

Functions in bfpwr (0.1.6)

powertbf01

Power and sample size calculations for \(t\)-test Bayes factor
pnmbf01

Cumulative distribution function of the normal moment prior Bayes factor
ptbf01

Cumulative distribution function of the t-test Bayes factor
powernmbf01

Power and sample size calculations for normal moment prior Bayes factor
powerbinbf01

Power and sample size calculations for binomial Bayes factor
tbf01

t-test Bayes factor
powerbf01

Power and sample size calculations for z-test Bayes factor
print.power.bftest

Print method for class "power.bftest"
nnmbf01

Sample size determination for normal moment prior Bayes factor
pbf01

Cumulative distribution function of the z-test Bayes factor
pbinbf01

Cumulative distribution function of the binomial Bayes factor
nbf01

Sample size determination for z-test Bayes factor
nbinbf01

Sample size determination for binomial Bayes factor
nmbf01

Normal moment prior Bayes factor
plot.power.bftest

Plot method for class "power.bftest"
ntbf01

Sample size calculations for \(t\)-test Bayes factor
bf01

z-test Bayes factor
binbf01

Binomial Bayes factor