mediation: Causal Mediation Analysis

We implement parametric and non parametric mediation analysis. This package performs the methods and suggestions in Imai, Keele and Yamamoto (2010), Imai, Keele and Tingley (2010), Imai, Tingley and Yamamoto (2013), Imai and Yamamoto (2013) and Yamamoto (2013). In addition to the estimation of causal mediation effects, the software also allows researchers to conduct sensitivity analysis for certain parametric models.

Install the latest version of this package by entering the following in R:
install.packages("mediation")
AuthorDustin Tingley <dtingley@gov.harvard.edu>, Teppei Yamamoto <teppei@mit.edu>, Kentaro Hirose <hirose@princeton.edu>, Luke Keele <ljk20@psu.edu>, Kosuke Imai <kimai@princeton.edu>
Date of publication2015-07-18 17:00:14
MaintainerTeppei Yamamoto <teppei@mit.edu>
LicenseGPL (>= 2)
Version4.4.5
http://imai.princeton.edu/projects/mechanisms.html

View on CRAN

Man pages

amelidiate: Function for combining outputs from mediations function and...

boundsdata: Example Data for the Design Functions

CEDdata: Example Data for the Crossover Encouragement Design

framing: Brader, Valentino and Suhay (2008) Framing Experiment Data

ivmediate: Causal Mediation Analysis with Treatment Noncompliance

jobs: JOBS II data

mediate: Causal Mediation Analysis

mediate.ced: Estimating Average Causal Mediation Effects under the...

mediate.pd: Estimating Average Causal Mediation Effects under the...

mediate.ped: Computing Bounds on Average Causal Mediation Effects under...

mediate.sed: Estimating Average Causal Mediation Effects under the Single...

mediations: Causal Mediation Analysis for Multiple...

medsens: Sensitivity Analysis for Causal Mediation Effects

multimed: Estimation and Sensitivity Analysis for Multiple Causal...

plot.ivmediate: Plotting Local Indirect, Direct, and Total Effects from...

plot.mediate: Plotting Indirect, Direct, and Total Effects from Mediation...

plot.mediate.mer: Plotting Indirect, Direct, and Total Effects from Mediation...

plot.mediations: Plotting Indirect, Direct, and Total Effects from Multiple...

plot.medsens: Plotting Results from Sensitivity Analysis for Causal...

plot.multimed: Plotting the Results of Causal Mediation Analysis for...

school: School-level data

student: Hypothetical student-level data

summary.ivmediate: Summarizing Output from Mediation Analysis with Treatment...

summary.mediate: Summarizing Output from Mediation Analysis

summary.mediate.design: Summarizing Output from Design Based Mediation Analysis

summary.mediate.mer: Summarizing Output from Mediation Analysis of Multilevel...

summary.mediations: Summarizing Output from Multiple Mediation Analyses

summary.medsens: Summarizing Results from Sensitivity Analysis for Causal...

summary.multimed: Summarizing Output from Mediation Analysis with Multiple...

test.modmed: Significance Test for Moderated Mediation

test.TMint: Significance Test for Treatment-Mediator Interaction in...

Functions

amelidiate Man page
boundsdata Man page
CEDdata Man page
framing Man page
ivmediate Man page
jobs Man page
mediate Man page
mediate.ced Man page
mediate.pd Man page
mediate.ped Man page
mediate.sed Man page
mediations Man page
medsens Man page
multimed Man page
plot.ivmediate Man page
plot.mediate Man page
plot.mediate.mer Man page
plot.mediate.order Man page
plot.mediations Man page
plot.mediations.order Man page
plot.medsens Man page
plot.multimed Man page
print.htest.order Man page
print.summary.ivmediate Man page
print.summary.mediate Man page
print.summary.mediate.design Man page
print.summary.mediate.mer Man page
print.summary.mediate.mer.2 Man page
print.summary.mediate.mer.3 Man page
print.summary.mediate.order Man page
print.summary.mediations Man page
print.summary.mediations.order Man page
print.summary.medsens Man page
print.summary.multimed Man page
print.test.modmed.mediate Man page
print.test.modmed.mediate.order Man page
school Man page
student Man page
summary.ivmediate Man page
summary.mediate Man page
summary.mediate.design Man page
summary.mediate.mer Man page
summary.mediate.order Man page
summary.mediations Man page
summary.mediations.order Man page
summary.medsens Man page
summary.multimed Man page
test.modmed Man page
test.modmed.default Man page
test.modmed.mediate Man page
test.modmed.mediate.order Man page
test.TMint Man page
test.TMint.default Man page
test.TMint.mediate Man page
test.TMint.mediate.order Man page

Files

inst
inst/CITATION
inst/doc
inst/doc/mediation-old.pdf
inst/doc/mediation.R
inst/doc/mediation.Rnw
inst/doc/mediation.pdf
inst/doc/mediation-old.Rnw
NAMESPACE
demo
demo/mediation-code.R
demo/00Index
data
data/school.RData
data/framing.RData
data/jobs.RData
data/student.RData
data/CEDdata.RData
data/boundsdata.RData
R
R/mediate.R R/onAttach.R R/mediations.R R/multimed.R R/medtests.R R/amelidiate.R R/mediate.designs.R R/ivmediate.R R/medsens.R
vignettes
vignettes/v59i05.bib
vignettes/mediation-chart-new.jpg
vignettes/Rho-R2-ContCont-JOBS.pdf
vignettes/mediation-chart.jpg
vignettes/mediation.Rnw
vignettes/plot-mediate.pdf
vignettes/plot-mediate-int.pdf
vignettes/mediationR2.bib
vignettes/natbib.bst
vignettes/mediation-old.bib
vignettes/BinaryMediator-Sensitivity-Rpaper.pdf
vignettes/Rho-R2-JobsBinOutcome.pdf
vignettes/mediation-old.Rnw
MD5
build
build/vignette.rds
DESCRIPTION
ChangeLog
man
man/plot.mediate.Rd man/plot.mediations.Rd man/test.modmed.Rd man/school.Rd man/mediate.sed.Rd man/ivmediate.Rd man/summary.mediate.Rd man/multimed.Rd man/student.Rd man/summary.mediate.design.Rd man/summary.mediations.Rd man/plot.mediate.mer.Rd man/mediate.ced.Rd man/boundsdata.Rd man/mediate.pd.Rd man/summary.mediate.mer.Rd man/test.TMint.Rd man/mediations.Rd man/plot.ivmediate.Rd man/amelidiate.Rd man/plot.medsens.Rd man/summary.multimed.Rd man/jobs.Rd man/framing.Rd man/summary.medsens.Rd man/plot.multimed.Rd man/mediate.Rd man/mediate.ped.Rd man/summary.ivmediate.Rd man/CEDdata.Rd man/medsens.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.