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.

Package details

AuthorTyson S Barrett [aut, cre] (<>), Angelo Canty [ctb] (S original bootstrap method,, Brian D. Ripley [ctb] (R port, bootstrap method), Thomas Leeper [ctb] (Vectorized marginal effects,
MaintainerTyson S Barrett <>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the MarginalMediation package in your browser

Any scripts or data that you put into this service are public.

MarginalMediation documentation built on May 2, 2019, 1:43 p.m.