Skip to content

MarginalMediation

0.7.3

Marginal Mediation

0packages depend
3.6Kdownloads / year
55.2%test coverage
13/13checks pass

Overview

About
Maintained by Tyson S BarrettFirst published 2018-04-104 releasesCRAN page ↗

Provides the ability to perform "Marginal Mediation"--mediation wherein the indirect and direct effects are in terms of the average marginal effects (Bartus, 2005, https://EconPapers.repec.org/RePEc:tsj:stataj:v:5:y:2005:i:3:p:309-329). The style of the average marginal effects stems from Thomas Leeper's work on the "margins" package. This framework allows the use of categorical mediators and outcomes with little change in interpretation from the continuous mediators/outcomes. See doi:10.13140/RG.2.2.18465.92001 for more details on the method.

Install

Health

CRAN checks
13OK
Slowest check: 3.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.07
55.2%
Coverage · measured lines
91%
Documentation · exports
10
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-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 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 · 291 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
10%
References docs
18%

Downloads

3.6K
CRAN downloads in the past year
Rank #12,042 · ~10/day · ~298/mo
Daily download trend is not available in this view yet.
21530 days
82490 days
3.6K1 year
Compare downloads with other packages →
Also on155 r2u22 autocran44 c2d4u

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (3)
Contributor
Contributor
Contributor
Listed in earlier versions (2)
no longer listed · 0.5.1 to 0.7.3
no longer listed · 0.5.1 to 0.7.3
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.7.3Latest
    2026-01-18 · current release · diff ↗
  • 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
  • 0.7.2
    2022-04-15 · diff ↗
  • 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
  • 0.7.0
    2019-03-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.5.1
    2018-04-10
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-04-10
Total releases
4 / 8 yrs
License
GPL-3 OSI
Download size
1.7 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("MarginalMediation")
Barrett, T. S., Canty, A., Leeper, T., & Ripley, B. D. (2026). MarginalMediation: Marginal Mediation (Version 0.7.3) [Computer software]. https://doi.org/10.32614/CRAN.package.MarginalMediation

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

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