Skip to content

power4mome

0.2.1

Power Analysis for Moderation and Mediation

0packages depend
37.1Kdownloads / year
79.4%test coverage
13/13checks pass

Overview

About
Maintained by Shu Fai CheungFirst published 2025-09-044 releasesCRAN page ↗GitHub ↗

Power analysis and sample size determination for moderation, mediation, and moderated mediation in models fitted by structural equation modelling using the 'lavaan' package by Rosseel (2012) doi:10.18637/jss.v048.i02 or by multiple regression. The package 'manymome' by Cheung and Cheung (2024) doi:10.3758/s13428-023-02224-z is used to specify the indirect paths or conditional indirect paths to be tested.

Install

Health

CRAN checks
13OK
Slowest check: 16.1 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.56
79.4%
Coverage · measured lines
100%
Documentation · exports
13
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-18
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-15
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-18
    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 · 876 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
92%
Return-value docs
100%
References docs
15%

Downloads

37.1K
CRAN downloads in the past year
Rank #7,328 · ~102/day · ~3.1K/mo
Daily download trend is not available in this view yet.
25930 days
1.2K90 days
37.1K1 year
Compare downloads with other packages →
Also on104 r2u2 autocran

Repository

Repository
1Stars
0Forks
1Open issues
0Open PRs
2Releases
1,393Commits
1Contributors
lavaanmediationmoderated-mediationmoderationpower-analysisrr-packagesample-size
License GPL-3.0 · 1,393 commits · Last activity 2026-08-10 · 0% stars, 30d

Stars over time

2025-08-31 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/sfcheung/power4mome on 2026-08-16.

Continuous integration (1)
GitHub Actions
Lint, format, editor (2)
lintrVS Code
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.4.0
Imports (13)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

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

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

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.1Latest
    2026-03-24 · current release · diff ↗
  • 0.2.0
    2026-03-18 · diff ↗
  • 0.1.1
    2025-09-21 · diff ↗
  • 0.1.0
    2025-09-04
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-09-04
Total releases
4 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.4.0
Download size
786 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("power4mome")
Cheung, S. F., Cheung, S., & Yang, W. (2026). power4mome: Power Analysis for Moderation and Mediation (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.power4mome

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 power4mome version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, 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