A Power Analysis Toolbox to Find Cost-Efficient Study Designs
Overview
We implement a surrogate modeling algorithm to guide simulation-based sample size planning. The method is described in detail in our paper (Zimmer & Debelak (2023) doi:10.1037/met0000611). It supports multiple study design parameters and optimization with respect to a cost function. It can find optimal designs that correspond to a desired statistical power or that fulfill a cost constraint. We also provide a tutorial paper (Zimmer et al. (2023) doi:10.3758/s13428-023-02269-0).
Added 5 new vignettes contributed by Marc Egli with walkthroughs through various applications: ANOVA, GLM, IRT, multilevel model, t-test.
From NEWS.md in the release
Install
Health
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘example.simfun.R’ ‘fit.surrogate.R’r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'example.simfun.R' 'fit.surrogate.R'- NOTE13 NOTE2026-05-02
- ERROR11 NOTE, 1 ERROR2026-04-25
- NOTE3 OK, 11 NOTE2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 83%5 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/flxzimmer/mlpwr on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing mlpwr adds 27 packages (16 with compiled code, 24 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, isoband 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.1.1Latest
- RR 4.4.0 released · 2024-04-24
- 1.1.0
- 1.0.12023-07-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.02022-10-14
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-10-14
- Total releases
- 4 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 162 KB / 1 file
- Download size
- 964 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlpwr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1037/met0000611.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.