Example: barber

mediation: R Package for Causal Mediation Analysis

JSSJ ournal of Statistical SoftwareAugust 2014, Volume 59, Issue :RPackage for Causal Mediation AnalysisDustin TingleyHarvard UniversityTeppei YamamotoMassachusetts Instituteof TechnologyKentaro HirosePrinceton UniversityLuke KeelePennsylvania State UniversityKosuke ImaiPrinceton UniversityAbstractIn this paper, we describe theRpackagemediationfor conducting Causal mediationanalysis in applied empirical research. In many scientific disciplines, the goal of researchersis not only estimating Causal effects of a treatment but also understanding the processin which the treatment causally affects the outcome. Causal Mediation Analysis is fre-quently used to assess potential Causal mechanisms. Themediationpackage implementsa comprehensive suite of statistical tools for conducting such an Analysis . The packageis organized into two distinct approaches.

Our estimation strategy overcomes the limitation of the standard methods based on the product or di erence of coe cients, which are only appropriate for the analysis of causal. 2 Causal Mediation Analysis. Causal Mediation Analysis. 5 Causal Mediation Analysis ) E( . The

Tags:

  Analysis, Packages, Mediation, Casual, Overcome, Package for causal mediation analysis

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of mediation: R Package for Causal Mediation Analysis

1 JSSJ ournal of Statistical SoftwareAugust 2014, Volume 59, Issue :RPackage for Causal Mediation AnalysisDustin TingleyHarvard UniversityTeppei YamamotoMassachusetts Instituteof TechnologyKentaro HirosePrinceton UniversityLuke KeelePennsylvania State UniversityKosuke ImaiPrinceton UniversityAbstractIn this paper, we describe theRpackagemediationfor conducting Causal mediationanalysis in applied empirical research. In many scientific disciplines, the goal of researchersis not only estimating Causal effects of a treatment but also understanding the processin which the treatment causally affects the outcome. Causal Mediation Analysis is fre-quently used to assess potential Causal mechanisms. Themediationpackage implementsa comprehensive suite of statistical tools for conducting such an Analysis . The packageis organized into two distinct approaches.

2 Using the model-based approach, researcherscan estimate Causal Mediation effects and conduct sensitivity Analysis under the standardresearch design. Furthermore, the design-based approach provides several Analysis toolsthat are applicable under different experimental designs. This approach requires weakerassumptions than the model-based approach. We also implement a statistical methodfor dealing with multiple (causally dependent) mediators, which are often encountered inpractice. Finally, the Package also offers a methodology for assessing Causal Mediation inthe presence of treatment noncompliance, a common problem in randomized : Causal mechanisms, Mediation Analysis , Mediation , IntroductionScholars across a wide range of disciplines are increasingly interested in identifying causalmechanisms, going beyond the estimation of Causal effects.

3 Once they ascertain that cer-tain variables causally affect the outcome, the next natural step is to understand how thesevariables exert their influence. The standard procedure for analyzing Causal mechanisms inapplied research is calledmediation Analysis , where a set of linear regression models are fit-2 Causal Mediation Analysisted and then the estimates of Mediation effects are computed from the fitted models ( ,Haavelmo 1943; Baron and Kenny 1986; Shadish, Cook, and Campbell 2001; MacKinnon2008). In recent years, however, Causal mechanisms have been studied within the modernframework of Causal inference with an emphasis on the assumptions required for identifi-cation. This approach has highlighted limitations of earlier methods and pointed the waytowards a more flexible estimation strategy.

4 In addition, new research designs have beenproposed for identifying Causal this paper, we introduce a full featuredRpackage, Mediation (Tingley, Yamamoto, Hirose,Keele, and Imai 2013), for studying Causal mechanisms. Themediationpackage allows usersto (1) investigate the role of Causal mechanisms using different types of data and statisticalmodels, (2) explore how results change as identification assumptions are relaxed, and (3)calculate quantities of interest under alternative research designs. We focus on the demon-stration of the functionalities available through themediationpackage. The statistical theorythat underlies the procedures implemented in themediationpackage is presented elsewherealong with various empirical examples (Imai, Keele, and Yamamoto 2010c; Imai, Keele, Tin-gley, and Yamamoto 2011; Imai, Keele, and Tingley 2010a; Imai, Tingley, and Yamamoto2013; Yamamoto 2013).

5 Themediationpackage is freely available for download via the ComprehensiveRArchive Net-work (CRAN) runs on a varietyof computing platforms (RCore Team 2014). In addition, aStata(StataCorp. 2013) versionof the Package is available but has a more limited functionality (Hicks and Tingley 2011). Thefirst version of themediationpackage appeared at CRAN in 2009, and Imai, Keele, Tingley,and Yamamoto (2010b) discuss an earlier version of the Package . Since then, however, wehave dramatically improved the Package with a significant number of new functionalities andimprovements. The current paper thus provides an up-to-date description of the analysesthat can be conducted via themediationpackage. To install themediationpackage, use thefollowing standard syntax for installing anRpackage,R> (" Mediation ")where users may be prompted to select a CRAN mirror from which the Package will bedownloaded.

6 This step needs to be done only once (unless one wishes to update themediationpackage to the new version).In the next section, we present an overview of themediationpackage. We then describe thefunctionalities of the Package for the model-based Causal Mediation Analysis (Section 3), mul-tilevel Mediation Analysis (Section 4), the design-based Causal Mediation Analysis (Section 5),the Analysis of causally dependent multiple mediators (Section 6), and Causal Mediation anal-ysis with treatment noncompliance (Section 7). Finally, Section 8 Overview of themediationpackageThemediationpackage consists of several main functions as well as various methods forsummarizing output from these functions ( ,plotandsummary). The Package requireslittle programming knowledge on the user s side. Figure 1 illustrates the core structure ofthemediationpackage, which distinguishes between model-based and design-based inference has been standard practice in the Mediation Analysis to date.

7 In theJournal of Statistical Software3 Figure 1: Core structure of themediationpackage as of version setting, the treatment variable is randomized and the mediating and outcomevariables are observed without any intervention by researchers. Imaiet al.(2010a) show thata range of parametric and semi-parametric models may then be used to estimate the averagecausal Mediation effect, defined below, and other quantities of interest. This modeling ap-proach relies on the sequential ignorability assumption for point identification, which as Imaiet al.(2010a) show, provides a general purpose algorithm for estimating quantities of contrast, design-based inference primarily employs the features of the experimental designand does not require the sequential ignorability assumption. The formal identification prop-erties of these designs are studied by Imaiet al.

8 (2013) and the examples from experimentaland observational studies are contained in Imaiet al.(2011, 2013). We refer readers to thesepapers for the details about the statistical methods implemented via describing the functions available inmediation, we briefly define the quantities of inter-est that our software is designed to estimate. Here, we use the potential outcomes frameworkto define these quantities. LetMi(t) denote the potential value of a mediator of interest forunitiunder the treatment statusTi=t. LetYi(t,m) denote the potential outcome thatwould result if the treatment and mediating variables equaltandm, respectively. Consider astandard experimental design where only the treatment variable is randomized. We observeonly one of the potential outcomes, and the observed outcome,Yi, equalsYi(Ti,Mi(Ti)) whereMi(Ti) represents the observed value of the mediatorMi.

9 With this notation, the total unittreatment effect can be written as, i Yi(1,Mi(1)) Yi(0,Mi(0)).(1)We can decompose this total effect into the two components. First, thecausal mediationeffectsare represented by (Robins and Greenland 1992; Pearl 2001), i(t) Yi(t,Mi(1)) Yi(t,Mi(0)),(2)for each treatment statust= 0,1. All other Causal mechanisms can be represented by thedirect effectsof the treatment as, i(t) Yi(1,Mi(t)) Yi(0,Mi(t)),(3)4 Causal Mediation Analysisfor each unitiand each treatment statust= 0,1. Together, we see that they sum up to thetotal effect, i= i(t) + i(1 t)(4)fort= 0,1. The case of multiple candidate mediating variables requires additional notationand is discussed in Section 6. Theaverage Causal Mediation effects(ACME) (t) and theaverage direct effects (ADE) (t), represent the population averages of these Causal mediationand direct of the ACME requires an additional assumption beyond the strong ignorabilityof the treatment, which is sufficient for identifying the average total effect of the a vector of the observed pre-treatment confounders for uniti.

10 The key identifyingassumption is called sequential ignorability and can be written as,Assumption 1 (Sequential Ignorability; Imaiet ){Yi(t ,m),Mi(t)} Ti|Xi=x,(5)Yi(t ,m) Mi(t)|Ti=t,Xi=x,(6)where0<P(Ti=t|Xi=x)an d0< p(Mi=m|Ti=t,Xi=x)fort= 0,1, and allxandmin the support ofXiandMi, 5 is the standard strong ignorability of the treatment assignment and is satisfied, forexample, if the treatment is randomized (possibly conditional onXi). However, Equation 6requires that the mediator is also ignorable given the observed treatment and pre-treatmentconfounders. This additional assumption is quite strong because it excludes the existence of(measured or unmeasured) post-treatment confounders as well as that of unmeasured pre-treatment confounders. This assumption, therefore, rules out the possibility of multiple me-diators that are causally related to each other (see Section 6 for the method that is designedto deal with such a scenario).


Related search queries