Package: mediation 4.5.0

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) <doi:10.1214/10-STS321>, Imai, Keele and Tingley (2010) <doi:10.1037/a0020761>, Imai, Tingley and Yamamoto (2013) <doi:10.1111/j.1467-985X.2012.01032.x>, Imai and Yamamoto (2013) <doi:10.1093/pan/mps040> and Yamamoto (2013) <http://web.mit.edu/teppei/www/research/IVmediate.pdf>. In addition to the estimation of causal mediation effects, the software also allows researchers to conduct sensitivity analysis for certain parametric models.

Authors:Dustin Tingley <[email protected]>, Teppei Yamamoto <[email protected]>, Kentaro Hirose <[email protected]>, Luke Keele <[email protected]>, Kosuke Imai <[email protected]>, Minh Trinh <[email protected]>, Weihuang Wong <[email protected]>

mediation_4.5.0.tar.gz
mediation_4.5.0.zip(r-4.5)mediation_4.5.0.zip(r-4.4)mediation_4.5.0.zip(r-4.3)
mediation_4.5.0.tgz(r-4.4-any)mediation_4.5.0.tgz(r-4.3-any)
mediation_4.5.0.tar.gz(r-4.5-noble)mediation_4.5.0.tar.gz(r-4.4-noble)
mediation_4.5.0.tgz(r-4.4-emscripten)mediation_4.5.0.tgz(r-4.3-emscripten)
mediation.pdf |mediation.html
mediation/json (API)
NEWS

# Install 'mediation' in R:
install.packages('mediation', repos = c('https://teppeiyamamoto.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/teppeiyamamoto/mediation/issues

Datasets:
  • CEDdata - Example Data for the Crossover Encouragement Design
  • boundsdata - Example Data for the Design Functions
  • framing - Brader, Valentino and Suhay (2008) Framing Experiment Data
  • jobs - JOBS II data
  • school - School-level data
  • student - Hypothetical student-level data

On CRAN:

10.53 score 16 packages 772 scripts 13k downloads 27 mentions 13 exports 75 dependencies

Last updated 5 years agofrom:e5310d5b2a. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winNOTENov 05 2024
R-4.5-linuxNOTENov 05 2024
R-4.4-winOKNov 05 2024
R-4.4-macOKNov 05 2024
R-4.3-winOKNov 05 2024
R-4.3-macOKNov 05 2024

Exports:amelidiateivmediatemediatemediate_tslsmediate.cedmediate.pdmediate.pedmediate.sedmediationsmedsensmultimedtest.modmedtest.TMint

Dependencies:backportsbase64encbootbslibcachemcheckmatecliclustercolorspacedata.tabledigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4lpSolvemagrittrMASSMatrixmemoisemgcvmimeminqamunsellmvtnormnlmenloptrnnetpillarpkgconfigR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownrpartrstudioapisandwichsassscalesstringistringrtibbletinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

mediation

Rendered frommediation.Rnwusingutils::Sweaveon Nov 05 2024.

Last update: 2014-08-28
Started: 2012-03-20

mediation-old

Rendered frommediation-old.Rnwusingutils::Sweaveon Nov 05 2024.

Last update: 2017-03-13
Started: 2012-05-31

Readme and manuals

Help Manual

Help pageTopics
Function for combining outputs from mediations function and calculating quantities of interest. For use with multiple imputation procedures.amelidiate
Example Data for the Design Functionsboundsdata
Example Data for the Crossover Encouragement DesignCEDdata
Brader, Valentino and Suhay (2008) Framing Experiment Dataframing
Causal Mediation Analysis with Treatment Noncomplianceivmediate
JOBS II datajobs
Causal Mediation Analysismediate
Two-stage Least Squares Estimation of the Average Causal Mediation Effectsmediate_tsls
Estimating Average Causal Mediation Effects under the Crossover Encouragement Designmediate.ced
Estimating Average Causal Mediation Effects under the Parallel Designmediate.pd
Computing Bounds on Average Causal Mediation Effects under the Parallel Encouragement Designmediate.ped
Estimating Average Causal Mediation Effects under the Single Experiment Designmediate.sed
mediation: Parametric and non parametric mediation analysis.mediation-package mediation
Causal Mediation Analysis for Multiple Outcome/Treatment/Mediator Combinationsmediations
Sensitivity Analysis for Causal Mediation Effectsmedsens
Estimation and Sensitivity Analysis for Multiple Causal Mechanismsmultimed
Plotting Local Indirect, Direct, and Total Effects from Mediation Analysis with Treatment Noncomplianceplot.ivmediate
Plotting Indirect, Direct, and Total Effects from Mediation Analysisplot.mediate plot.mediate.order
Plotting Indirect, Direct, and Total Effects from Mediation Analysis of Multilevel Modelsplot.mediate.mer
Plotting Indirect, Direct, and Total Effects from Multiple Mediation Analysesplot.mediations plot.mediations.order
Plotting Results from Sensitivity Analysis for Causal Mediation Effectsplot.medsens
Plotting the Results of Causal Mediation Analysis for Multiple Mechanismsplot.multimed
School-level dataschool
Hypothetical student-level datastudent
Summarizing Output from Mediation Analysis with Treatment Noncomplianceprint.summary.ivmediate summary.ivmediate
Summarizing Output from Mediation Analysisprint.summary.mediate print.summary.mediate.order summary.mediate summary.mediate.order
Summarizing Output from Design Based Mediation Analysisprint.summary.mediate.design summary.mediate.design
Summarizing Output from Mediation Analysis of Multilevel Modelsprint.summary.mediate.mer print.summary.mediate.mer.2 print.summary.mediate.mer.3 summary.mediate.mer
Summarizing Output from Multiple Mediation Analysesprint.summary.mediations print.summary.mediations.order summary.mediations summary.mediations.order
Summarizing Results from Sensitivity Analysis for Causal Mediation Effectsprint.summary.medsens summary.medsens
Summarizing Output from Mediation Analysis with Multiple Mechanismsprint.summary.multimed summary.multimed
Significance Test for Moderated Mediationprint.test.modmed.mediate print.test.modmed.mediate.order test.modmed test.modmed.default test.modmed.mediate test.modmed.mediate.order
Significance Test for Treatment-Mediator Interaction in Causal Mediation Analysisprint.htest.order test.TMint test.TMint.default test.TMint.mediate test.TMint.mediate.order