Skip to content

InteractionPoweR

0.2.4Package record

Power Analyses for Interaction Effects in Cross-Sectional Regressions

1packages depend
5.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.4
  • Adds citation information and minor bug fixes.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-28
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.4
READMEYes · 576 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 0.2.4Citation fileYes · cites a publicationWebsiteYes · pkgdown

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

5.6K
CRAN downloads in the past year
Rank #6,416 · ~15/day · ~467/mo
Daily download trend is not available in this view yet.
48230 days
1.3K90 days
5.6K1 year
Compare downloads with other packages →
Also on78 r2u4 autocran

Repository

23Stars
2Forks
0Open issues
0Open PRs
0Releases
60Commits
1Commit identities
License file reads as GPL-3.0 · 60 commits · Last activity 2026-03-23
Responsiveness
How these are sampled
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

2025-05-11 · 222026-07-07 · 23
PracticesBeta

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.

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-03-23

pkgdown site last built 2026-03-23, before release 0.2.4 (2026-03-24)

CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.1.1 (2022)
Author · added in 0.2.4
Contributor
Contributor
Contributor
Contributor
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.4Latest
    record
    2024-07-09 · current release · diff ↗ ·
    added 1 export
    run_pos_power_search
  • 0.2.2
    record
    2024-07-09 · diff ↗ ·
    added 5 exports
    cor.mat.3way, generate.interaction.cov.input, power_interaction_3way_r2, power_interaction_r2_covs, simple.slopes.3way
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    record
    2023-04-18 · diff ↗
  • 0.2.0
    record
    2022-10-20 · diff ↗ ·
    removed 3 exports
    binary.p2skew, norm2binary, norm2gamma
  • 0.1.1
    record
    2022-08-24
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for InteractionPoweR version 0.2.4 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy