Power Analyses for Interaction Effects in Cross-Sectional Regressions
Overview
Power analysis for regression models which test the interaction of two or three independent variables on a single dependent variable. Includes options for correlated interacting variables and specifying variable reliability. Two-way interactions can include continuous, binary, or ordinal variables. Power analyses can be done either analytically or via simulation. Includes tools for simulating single data sets and visualizing power analysis results. The primary functions are power_interaction_r2() and power_interaction() for two-way interactions, and power_interaction_3way_r2() for three-way interactions. The function run_pos_power_search() provides a stability analysis for two-way interactions. Please cite as: Baranger DAA, Finsaas MC, Goldstein BL, Vize CE, Lynam DR, Olino TM (2023). "Tutorial: Power analyses for interaction effects in cross-sectional regressions." doi:10.1177/25152459231187531. If you use the stability analyses, please cite: Castillo A, Miller JD, Vize C, Baranger DAA, Lynam DR. "When Do Interaction/Moderation Effects Stabilize in Linear Regression?"doi:10.1177/25152459251407860.
- Adds citation information and minor bug fixes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-28
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 17
- Examples that run
- 88%14 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 15
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/dbaranger/interactionpower on 2026-10-21.
GitHub Pages site last deployed 2026-03-23
pkgdown site last built 2026-03-23, before release 0.2.4 (2026-03-24)
Dependencies
Installing InteractionPoweR adds 47 packages (25 with compiled code, 47 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, vipor 4.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
- 0.2.4Latest
- 0.2.22024-07-09 · diff ↗ ·
added 5 exports
cor.mat.3way, generate.interaction.cov.input, power_interaction_3way_r2, power_interaction_r2_covs, simple.slopes.3way - RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.2.12023-04-18 · diff ↗
- 0.2.0
- 0.1.12022-08-24
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-08-24
- Total releases
- 5 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 0.4 KB / 1 file
- Download size
- 281 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("InteractionPoweR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1177/25152459231187531, 10.1177/25152459251407860.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.