Skip to content

medmod

1.2.0

Simple Mediation and Moderation Analysis

0packages depend
204downloads / year
97.6%test coverage
13/13checks pass

Overview

About
Maintained by Ravi SelkerFirst published 2026-07-162 releasesCRAN page ↗GitHub ↗

This toolbox allows you to do simple mediation and moderation analysis. Models are estimated with the 'lavaan' package by Rosseel (2012) doi:10.18637/jss.v048.i02; standard errors for the mediation estimates are computed with the delta method following Sobel (1982) doi:10.2307/270723 or by bootstrapping. It is also available as a module for 'jamovi' (see https://www.jamovi.org for more information). You can find an in depth tutorial on the 'lavaan' model syntax used for this package on https://lavaan.ugent.be/tutorial/index.html.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.13
97.6%
Coverage · measured lines
100%
Documentation · exports
5
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-17
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

204
CRAN downloads in the past year
Rank #24,526 · ~1/day · ~17/mo
Daily download trend is not available in this view yet.
14530 days
20390 days
2041 year
Compare downloads with other packages →
Also on5 r2u21 autocran

Repository

Repository
6Stars
6Forks
2Open issues
0Open PRs
1Releases
49Commits
4Contributors
jamovimediationmoderation
49 commits · Last activity 2026-08-12

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/raviselker/medmod on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
renv
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
AirRStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.2
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

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

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

  • 1.2.0Latest
    2026-07-16 · current release · diff ↗
  • unarchivedReturned to CRAN
    2026-07-16
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • archivedRemoved from CRAN
    2022-04-06
    check issues were not corrected in time
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.0
    2017-09-12
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2026-07-16
Total releases
2 / 1 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.2
Download size
18 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("medmod")
Selker, R. (2026). medmod: Simple Mediation and Moderation Analysis (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.medmod

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 medmod version 1.2.0 [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