Spower
0.6.4Power Analyses using Monte Carlo Simulations
Overview
Provides a general purpose simulation-based power analysis API for routine and customized simulation experimental designs. The package focuses exclusively on Monte Carlo simulation experiment variants of (expected) prospective power analyses, criterion analyses, compromise analyses, sensitivity analyses, and a priori/post-hoc analyses. The default simulation experiment functions defined within the package provide stochastic variants of the power analysis subroutines in G*Power 3.1 (Faul, Erdfelder, Buchner, and Lang, 2009) doi:10.3758/brm.41.4.1149, along with various other parametric and non-parametric power analysis applications (e.g., mediation analyses) and support for Bayesian power analysis by way of Bayes factors or posterior probability evaluations. Additional functions for building empirical power curves, reanalyzing simulation information, and for increasing the precision of the resulting power estimates are also included, each of which utilize similar API structures. For further details see the associated publication in Chalmers (2025) doi:10.3758/s13428-025-02787-z.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-3014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-2813 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 96%
- Documented parameters
- 99%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/philchalmers/spower on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 46 max
- Test cases
- 7 / 0.12 per code line
Test coverage
Line coverage
0%
Expression
0.0%
Tests / Examples
0.0% / 61% ex
Functions
60 40 exported
Complexity
4.7 avg / 46 max
Call network
60 nodes / 15 edges
Call graph
Open call graph →Lowest coverage
60 functions| Function | Cyclo | Coverage |
|---|---|---|
| Spower exp | 46 | 0% |
| SpowerBatch exp | 18 | 0% |
| SpowerCurve exp | 30 | 0% |
| gen_2r exp | 1 | 0% |
| gen_anova.test exp | 2 | 0% |
| gen_chisq.test exp | 2 | 0% |
People & History
10 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.6.4Latest
- 0.6.32026-05-22 · diff ↗
- 0.6.22026-05-06 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.62026-02-13 · diff ↗
- 0.5.12025-11-27 · diff ↗
- 0.5.02025-10-16 · diff ↗
- 0.4.02025-09-05 · diff ↗
- 0.3.12025-07-17 · diff ↗
- 0.2.32025-05-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.2.22025-03-25
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-03-25
- Total releases
- 10 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 2.7 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet