MarginalMediation: Marginal Mediation

Provides the ability to perform "Marginal Mediation"–mediation wherein the indirect and direct effects are in terms of the average marginal effects (Bartus, 2005, <>). 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 (peer reviewed articles forthcoming).

Version: 0.5.1
Imports: stats, magrittr, boot, purrr
Suggests: testthat, knitr, rmarkdown, furniture, margins
Published: 2018-04-10
Author: Tyson S Barrett ORCID iD [aut, cre], Angelo Canty [ctb] (S original bootstrap method,, Brian D. Ripley [ctb] (R port, bootstrap method), Thomas Leeper [ctb] (Vectorized marginal effects,
Maintainer: Tyson S Barrett <t.barrett at>
License: GPL-2
NeedsCompilation: no
Materials: README NEWS
CRAN checks: MarginalMediation results


Reference manual: MarginalMediation.pdf
Vignettes: Furniture
Package source: MarginalMediation_0.5.1.tar.gz
Windows binaries: r-prerel:, r-release:, r-oldrel:
OS X binaries: r-prerel: MarginalMediation_0.5.1.tgz, r-release: MarginalMediation_0.5.1.tgz


Please use the canonical form to link to this page.