BayesPower
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) <doi:10.31234/osf.io/pgdac_v3>.
Downloads
581
Last 30 days
6245th
1.8K
Last 90 days
3.3K
Last year
Trend: +7% (30d vs prior 30d)
30
Last 30 days
135
Last 90 days
345
Last year
Trend: -28.6% (30d vs prior 30d)
17
Last 7 days
71
Last 30 days
8
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.1Mb
libs 2.0Mb
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.0Mb
libs 2.0Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
whether package can be installed
Installation failed. See 'd:/Rcompile/CRANpkg/local/4.6/BayesPower.Rcheck/00install.out' for details.
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.1Mb
libs 2.0Mb
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.0Mb
libs 2.0Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.0Mb
libs 2.0Mb
installed package size
installed size is 5.2Mb
sub-directories of 1Mb or more:
R 3.0Mb
libs 2.0Mb
Code
Structure
Lines of code
27,834
Files
46
Compiled share
1.2%
Has compiled src
Yes
Language breakdown
API
Exported functions
13
Internal functions
198
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.40
testthat edition
3
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
0%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
0%
Unsafe pattern score
0
Dep constraint coverage
0%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
–
System requirements
–
C++ standard
–
License
GPL (>= 3)
License flags
SPDX valid, OSI approved
History
Versions
5
First release
2025-10-29
Latest release
2026-06-29
Avg cadence
55 days
Cold removal rate
100%
Dep drift
5
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.