Skip to content

Spower

0.6.4

Power Analyses using Monte Carlo Simulations

0packages depend
3.9Kdownloads / year
0.0%test coverage
13/13checks pass

Overview

About
Maintained by Phil ChalmersFirst published 2025-03-2510 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 3.7 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.12
0.0%
Coverage · measured lines
100%
Documentation · exports
13
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-30
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-28
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 615 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
96%
Documented parameters
99%
Return-value docs
100%
References docs
0%

Downloads

3.9K
CRAN downloads in the past year
Rank #8,783 · ~11/day · ~323/mo
Daily download trend is not available in this view yet.
32630 days
1.3K90 days
3.9K1 year
Compare downloads with other packages →
Also on185 r2u19 autocran

Repository

Repository
4Stars
2Forks
0Open issues
0Open PRs
7Releases
480Commits
1Contributors
480 commits · Last activity 2026-06-18 · 0% stars, 30d

Stars over time

2025-04-28 · 12026-07-07 · 4

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)
Depends (3)
R >= 4.1.0SimDesignstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 3,621 (43%)Rd 2,719 (32%)Vignettes 2,143 (25%)
Code characteristics
Object systems
S35
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

Loading call graph…

Lowest coverage

60 functions
FunctionCycloCoverage
Spower exp460%
SpowerBatch exp180%
SpowerCurve exp300%
gen_2r exp10%
gen_anova.test exp20%
gen_chisq.test exp20%

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.6.4Latest
    2026-06-18 · current release · diff ↗
  • 0.6.3
    2026-05-22 · diff ↗
  • 0.6.2
    2026-05-06 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6
    2026-02-13 · diff ↗
  • 0.5.1
    2025-11-27 · diff ↗
  • 0.5.0
    2025-10-16 · diff ↗
  • 0.4.0
    2025-09-05 · diff ↗
  • 0.3.1
    2025-07-17 · diff ↗
  • 0.2.3
    2025-05-21 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.2
    2025-03-25
  • R
    R 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
Report a problem with this page →