Abstract
Causal mediation analysis investigates the mechanism linking exposure and outcome. Dealing with the impact of unobserved confounders among exposure, mediator and outcome is an issue of great concern. Moreover, when multiple mediators exist, this causal pathway intertwines with other causal pathways, rendering it difficult to estimate the path-specific effects. In this study, we propose a method (PSE-MR) to identify and estimate path-specific effects of an exposure (e.g. education) on an outcome (e.g. osteoarthritis risk) through multiple causally ordered and non-ordered mediators (e.g. body mass index and pack-years of smoking) using summarized genetic data, when the sequential ignorability assumption is violated. Specifically, PSE-MR requires a specific rank condition in which the number of instrumental variables is larger than the number of mediators. Furthermore, we illustrate the utility of PSE-MR by providing guidance for practitioners and exploring the mediation effects of body mass index and pack-years of smoking in the causal pathways from education to osteoarthritis risk. Additionally, the results of simulation reveal that the causal estimates of path-specific effects are almost unbiased with good coverage and Type I error properties. Also, we summarize the least number of instrumental variables for the specific number of mediators to achieve 80% power.
Keywords
Introduction
Mediation analyses help uncover the mechanism of an underlying causal relationship between exposure and outcome by using mediator variables. 1 In mediation analyses, the total effect of exposure on outcome is partitioned into indirect and direct effects. Indirect effects act through mediators of interest, whereas direct effect is the effect of exposure on the outcome in the absence of the mediators. Path-specific effects (PSEs) are a broad class of indirect effects of an exposure to an outcome via one or more causal pathways with respect to a subset of mediators. 2 Estimating PSEs using existing methods typically requires a stringent sequential ignorability assumption 3 that no unmeasured confounders exist among the exposure, mediators and outcome. 4 However, this assumption may not hold in practice and omitting important confounders will inevitably cause biases in the results. 5 When multiple intermediate variables (e.g. M1 and M2) are involved in a study, three scenarios may arise with respect to M1 and M2, as shown in Figure 1. In Figure 1(a), M1 is conditionally independent of M2 given the treatment (X). 6 In Figure 1(b), M1 and M2 are causally non-ordered because they are independent of each other, conditional on the exposure (X) and unmeasured confounder (U). 7 As shown in Figure 1(c), mediators are causally ordered. M1 is treated as a mediator-outcome confounder affected by treatment when we are interested in mediator M2. For causally non-ordered and ordered mediators, Imai and Yamamoto 8 proposed an approach using a linear structural equation model. Daniel et al. 9 considered the finest possible decomposition of the total effect when there were two causally ordered mediators and evaluated the PSEs under the counterfactual framework. VanderWeele and Vansteelandt 10 regarded the multiple mediators simultaneously as joint mediators and defined the ‘joint’ natural direct and indirect effects as extensions of the usual two-way decomposition of the total effect using regression-based approach and weighting approach. However, these methods require the assumption of sequential ignorability. Recently, several methods4,11–15 have been developed to relax this assumption. We compared the assumptions of these methods in the discussion section. However, none of them allowed for the simultaneous existence of unmeasured confounders among the exposure, mediators and the outcome.

Three types of settings with two mediators, M1 and M2 are shown in (a) where M1 is independent of M2; (b) where M1 is related to M2, but not causally; and (c) where M1 is causally related to M2 (causally-ordered mediators). Graphical diagrams for PSE-MR are given in settings with one mediator (d), two non-ordered mediators (e) and two ordered mediators (f). X: The exposure, M1 and M2: Two mediators, Y: Outcome, G: Instrumental variables (genetic variants).
Mendelian randomization (MR) analyses 16 using summarized data have recently become popular owing to the increase in the public availability of suitable data in large sample sizes from recently published genome-wide association studies (GWAS). 17 For instance, Tikkanen et al. 18 performed a two-sample MR to evaluate the independent causal roles of body components (fat-free mass and fat mass) on atrial fibrillation (AF). Firstly, univariate MR was used to estimate the causal effect of fat-free mass on AF by leveraging genetic variants. Certain genetic variants may be associated with both fat-free mass and fat mass, which is problematic because fat mass is associated with AF. These genetic variants are invalid because they violate the assumption of exclusion restriction, as they unlock the pathway from genetic variants to AF, not via fat-free mass. This phenomenon is called horizontal pleiotropy, and fat mass is considered a pleiotropic trait. 19 To eliminate the effect of pleiotropy on causal estimation, multivariable MR 20 was performed to evaluate the causal role of fat-free mass on AF independent of fat mass. Burgess et al. 21 showed that total and direct effects in a single mediator setting could be estimated using univariable and multivariable MR analyses, respectively. 21 This method is reviewed in Section 2.1. In Section 2.2, we extend the analysis from a single mediator to multiple mediators (PSE-MR) for both causally non-ordered and ordered mediators, even in the presence of pleiotropy. In Section 3, we apply our method to estimate PSEs from education to osteoarthritis (OA) risk through body mass index (BMI) and pack-years of smoking. In Section 4, we conduct a series of simulations to evaluate the performance of the PSE-MR in different scenarios. Finally, we provide a short review to compare PSE-MR and existing mediation analyses, and then discuss the potential application of PSE-MR. The R package PSEMR for implementing PSE-MR is provided in GitHub (https://github.com/hhoulei/PSEMR).
Motivating example and notations
Globally the most common form of arthritis is OA. It accounts for 2.4% of all years lived with disability (YLD) and ranks as a leading contributor to global YLDs.22,23 Some studies23–26 have highlighted education, obesity and smoking as the common mechanisms for underlying OA. Education is a common socioeconomic factor and may influence obesity 27 as well as smoking. 28 A MR study revealed that a higher BMI increases the likelihood of becoming a smoker and increases smoking heaviness in current smokers using data from multiple cohorts. 29 Hence, we aim to examine whether education affects OA through its influence on BMI and pack-years of smoking in Europe (Figure 2).

Graphical diagrams of motivating example.
Hereafter, we let X, Y,
We define the PSEs using the counterfactual model,
30
and the PSE of X on Y along the path
In this study, we assume that all variables are continuous, and that the relationships between variables (
Initially, we review the method proposed by Burgess et al.
21
In this section, we only consider one mediator, taking
PSE-MR based on IVW (PSE-IVW)
The genetic variants used to estimate the total effect of X(education) on Y(OA) must satisfy the standard assumptions of MR: they are associated with X(education), not associated with U, and there is no pathway from any
Under the framework of multivariable MR, all variants used to estimate the direct effect of X(education) on Y(OA) must satisfy the assumptions of multivariable MR: they are associated with the X(education) and/or
The method proposed by Burgess et al. (2017) has some limitations. None of the effects can be unbiasedly estimated if the direct effects of
In this section, we extend the PSE-MR method to multiple mediators. If there are n mediators
For each
For each
For each
Assumption I requires that
Firstly, we consider causally non-ordered mediators (Figure 3(a)), where n mediators are independent of each other condition on X. The causal effects of edges in the causal pathway from X to Y can be estimated using the following weighted regressions with the intercept set to zero

Graphical diagrams of relationships between the exposure (X), multiple mediators (M1, …, Mn), outcome (Y), and instrumental variables (G), which omits the confounders among X, M and Y, are shown as analyzed with (a) causally non-ordered mediators and (b) causally ordered mediators.
Secondly, we relax Assumption III by allowing for the direct effect from
When all mediators are causally ordered (Figure 3(b)), the causal effects of edges in the causal pathway from X to Y can be estimated by the weighted regressions in equations (8) and (9) by substituting
In this case, the cross-world independence assumption is violated if pleiotropy exists. This is because, taking two ordered mediators as an example (Figure 1(f)),
If interactions exist, the linearity assumption is violated. When there are interactions between exposure and mediators on the outcome, our method is infeasible for summary data but is still available for individual data. We can divide the entire population into several subgroups according to mediators from small to large and estimate the PSE in different subgroups from equations (8) and (9), respectively. Because the causal effect from exposure to outcome is not constant at different values of mediators (refer S1 Appendix, section 4.1). Similarly, when there are interactions between mediators (refer S1 Appendix, section 4.4), our method is also available for individual data and PSEs can be estimated by dividing the entire population into multiple subgroups according to the different values of mediators. Specifically, when there are interactions between mediators (BMI and pack-years of smoking) and confounders (refer S1 Appendix, section 4.3), or interactions between exposure and unmeasured confounders (refer S1 Appendix, section 4.2), not all the PSEs of exposure (education) on the outcome (OA) can be identified because of the uncertainty of unmeasured confounders. For the former, the direct effects of exposure on mediators and outcomes can be identified. For the latter, direct effects from mediators to outcome can be identified. We illustrate this in detail in S1 Appendix, section 4.
Application
As an illustrative example, we attempt to reveal the causal mechanism from education to OA. To clearly illustrate this example, a guide for practitioners was prepared to apply PSE-MR (Figure 4). The use of this pipeline to perform PSE-MR is demonstrated in the practical example given below.

Guidance for PSE-MR in an application. (A) PSE-MR base on a known causal graph relating exposure, mediators and outcome. Particularly, the order of multiple mediators should be determined. This can be obtained by orienting directions in pairs using prior information, MR Steiger test or bidirectional MR etc. (B to E) Further, individual data or summary data are used for exposure, mediators and outcome, respectively. (F) Note that summary data for exposure, mediators and outcome must be from a homogeneous population. (G) Then SNPs need to be filtered by P-value and linkage disequilibrium to be selected as instrumental variables. (H) The number of instrumental variables must be larger than that of mediators, which is the rank condition in PSE-MR. (I) We always assume consistency and composition assumptions in mediation analysis. (J and K) F statistics is a common tool to test the strength of instrumental variables (Assumption I: relevance). (L and M) E-value can be used to evaluate the sensitivity of estimates to confounders between G and Y, that is, Assumption II: exchangeability. A small E-value implies weak associations between G and unmeasured confounders. (N and O) Heterogeneity test as a common sensitivity analysis in MR study to test whether there are outliers, which may violate Assumption II or III. (P) Egger's test is used to test for pleiotropy (Assumption III: exclusion restriction). If Egger's test reveals that there is pleiotropy, PSE-Egger is chosen as the analysis method. If there is no pleiotropy, PSE-IVW is chosen. (Q) PSE-MR can output Path-specific effects from exposure to outcome.
For step A, our analysis focused on the diagram in Figure 2, which was obtained by the prior knowledge mentioned at the beginning of Section 2.1. Further, we prepared the summary data for education, BMI, pack-years of smoking and OA (step B): (1) genetic associations with education (years of schooling) in 1.1 million participants from European were obtained from the Social Science Genetic Association Consortium (SSGAC) 39 ; (2) genetic associations with BMI in 315,347 participants were obtained from the single large multiethnic Genetic Epidemiology Research on Adult Health and Aging (GERA) cohort 40 ; (3) genetic associations with pack-years of smoking and OA in 142,387 and 417,596 participants (39,427 cases and 378,169 controls) were obtained from the UK Biobank cohort, respectively. 41 Summary data of binary OA included SNP information, log(OR) and their standard errors from logistic regression (step D). Summary data of continuous phenotypes (education, BMI and pack-years of smoking) included SNP information, beta-coefficients and their standard errors from linear regression (step E). To ensure the homogeneity of the population (step F), all populations from the above database were mainly European ancestry.
Then we chose SNPs as valid instrumental variables for PSE-MR. These SNPs were filtered by the P-value (
Next, we performed several sensitivity analyses to examine whether the three core assumptions of PSE-MR were satisfied. For Assumption I, we calculated F statistics for genetic instruments and F statistics were greater than 10 (steps J and K). SNPs with F statistics smaller than 10 cannot be instrumental variables because they can induce weak instrumental bias. E-values between SNPs and OA were small enough to satisfy Assumption II (steps L and M, refer S1 Appendix, section 6, eTables 1 to 3). SNPs with large E-values must be removed because the InSIDE assumption may be violated. Heterogeneity tests revealed that there was strong heterogeneity for the Wald ratios 42 of education − BMI, education − pack-years of smoking and education-OA (step N, refer S1 Appendix, section 6, eTables 4, 6, 8). Following step O, we should remove outliers by MR-PRESSO, 43 297, 315 and 306 SNPs were left for single mediator (BMI, pack-years of smoking) and two mediators analyses, respectively (refer S1 Appendix, section 6, eTables 5, 7, 9). In addition, we evaluated whether horizontal pleiotropy was present using the Egger's test (step P). The results revealed no significant effects of BMI, pack-years of smoking, or OA (refer S1 Appendix, section 6, eTable 10), indicating the absence of directional pleiotropy. Thus, we have been well prepared to perform PSE-MR, and PSE-IVW as the primary method. If Egger's test revealed significant horizontal pleiotropy, we chose PSE-Egger as the primary method.
We performed single and multiple mediators analyses to explore the causal pathway from education to OA via PSE-MR. Figure 5 shows the path-specific effects of education on OA (step Q). Single mediator analysis suggested that BMI and pack-years of smoking were mediators in the causal pathway from education to OA. Then we performed PSE-MR analysis with multiple mediators to test whether education had indirect effects on OA risk through BMI and pack-years of smoking. We found that education was a protective factor against the risk of OA and a significant direct effect was obtained after adjusting for genetic associations with BMI and pack-years of smoking. Indirect effects through BMI and pack-years of smoking explained a considerable proportion of the causal effect of education on OA, and their total mediation proportion (MP) was 53.97%. In conclusion, three mediated pathways exist from education to OA: education→BMI→OA (MP: 21.52%), education→pack-years of smoking→OA (MP: 38.66%), and education→BMI→pack-years of smoking→OA (MP: 1.68%). These results (Figure 5) are consistent with the results of other observational and MR studies23,44 and previously described biological mechanisms. 45

Results (OR [95% CI]) of PSE-MR for the estimation of path-specific effects from education to osteoarthritis (OA) after removing outliers. X: education; M1: body mass index (BMI); M2: pack-years of smoking; Y: osteoarthritis (OA). (a) Single mediator analysis (BMI); (b) single mediator analysis (pack-years of smoking); and (c) two mediators analysis.
Settings
To validate the utility of the PSE-MR method for estimating PSEs, we considered the multiple mediators with causally non-ordered (
We classified all the genetic variants as Case (a): Balanced pleiotropy, InSIDE assumption satisfied. Case (b): Directional pleiotropy, InSIDE assumption satisfied. Case (c): Directional pleiotropy, InSIDE assumption not satisfied.
We believe that the PSE-IVW performs well in Case (a). As a solution to consider pleiotropy, the PSE-Egger can also perform well in Case (b). We consider how much of an impact it has on the estimate when the InSIDE assumption is violated (Case(c)). Finally, we also performed additional simulations for sensitivity analyses, where the population homogeneity assumption is violated, the causal order is misspecified, one of the mediators is missing, bi-directional causal effects between exposure and mediators exist, exposure and mediators are time-varying. PSE-MR may not be robust in these scenarios because it may induce necessary assumptions of PSE-MR violation. Additionally, we determined the optimal number of genetic variants when we considering multiple mediators. The details of the simulation are presented in S2 Appendix.
We used the following metrics to evaluate the performance of our methods: relative bias, mean square error (MSE), coverage ratio, Type I error rate for a null causal effect and empirical power to detect a non-null effect (i.e. the proportion of confidence intervals excluding zero). Standard errors of the PSEs were calculated by bootstrap.
Results
We found that the causal estimates of PSEs were unbiased with good Type I error properties. As the sample size increased, bias and standard errors decreased, while power improved. Higher power and lower bias were observed as the number of instrumental variables increased (refer S2 Appendix, sections 1, 3 and 5, eTables 1, 3, 6, 7, 13 and 14).
For the two non-ordered mediators, PSE-IVW showed good performance of in standard MR when estimating the total, direct and indirect effects as well as the three PSEs (Table 1). As the sample size and the number of genetic variants increased, the bias was reduced, and the Type I error was more stable at approximately 0.05 (refer S2 Appendix, section 3). The performance of PSE-MR based on IVW and MR-Egger with two non-ordered mediators in Cases (a) and (b), are listed in eTables 9 to12 (refer S2 Appendix, section 4). In Case (a), we observed that the bias was close to zero and the Type I error rates were approximately 0.05 in PSE-MR. PSE-Egger had less bias and more stable Type I error rates than IVW when directional pleiotropy existed in at least one pathway from G to Y (Case (b)). MR-Egger performed better than IVW in terms of bias, even when the InSIDE assumption was not satisfied (Case (c)). When the pleiotropic effects through confounders (violating the InSIDE assumption) were 2.5 times larger than the direct pleiotropic effects (satisfying the InSIDE assumption), estimates from PSE-Egger were much less biased and rejection rates of the causal null hypothesis were much closer to the nominal 5% rate than those from PSE-IVW were. In all cases, PSE-Egger had a smaller MSE and a more stable Type I error rate (0.05) than PSE-IVW when the PSE was zero. Estimators of indirect effects based on the product method had more stable Type I error rates (0.05) than those based on the difference method. The results for the two ordered multiple mediators were similar to those of the two non-ordered mediators (Table 2 and eTables 17 to 24 in S2 Appendix, section 6). In addition, the magnitude of
Simulation results of PSE-IVW with two non-ordered mediators in standard MR.
Simulation results of PSE-IVW with two non-ordered mediators in standard MR.
TE: total effect; DE: direct effect; IE: indirect effect; IE1: X→M1→Y; IE2: X→M2→Y; IE_d: indirect effect calculated by difference method; IE_p: indirect effect calculated by product method.
Simulation results of PSE-IVW with two ordered mediators in standard MR.
TE: total effect; DE: direct effect; IE: indirect effect; IE1: X→M1→Y; IE2: X→M2→Y; IE3: X→M1→M2→Y; IE_d: indirect effect calculated by difference method; IE_p: indirect effect calculated by product method.
The estimation of the direct effect is unbiased regardless of whether bidirectional causal effects between exposure and mediators exist, or the causal order is misspecified, although the estimation of PSEs is biased. Heterogeneous populations sometimes introduce bias in causal estimation for non-ordered and ordered mediators. If upstream mediators (e.g. M1) are missing, M1 is the confounder of M2 and Y and is affected by X (i.e. X – induced unmeasured confounder of M2 and Y). Thus the assumption of cross-world independence is violated. In addition, if we can obtain information at each time point, PSE-MR can be applied to time-varying exposure and mediators and it can also deal with the bi-directional relationship between exposure and mediators (refer S1 Appendix, sections 7 to 13). We also summarized the least number of instrumental variables for the specific number of mediators to achieve 80% power (Figure 6). The details are listed in eTable 41 to 42.

Power of PSE-MR in a different number of instrumental variables and mediators.
In this study, we develop a method PSE-MR to identify and estimate PSEs from an exposure on an outcome through mediator(s) using MR when there are unmeasured confounders among the exposure, mediators and the outcome. We extend PSE-MR from a single mediator setting to multiple mediators setting for both causally ordered and non-ordered mediators, and outline the assumptions required to obtain a causal effect. PSE-IVW can be used to explore the role of multiple mediators in causal pathways between the exposure and outcome. The PSE-Egger can be viewed as a sensitivity analysis to provide robustness against both measured and unmeasured pleiotropy and to strengthen the evidence from the PSE-IVW analysis.
We made a short review to compare the assumptions of PSE-MR with traditional mediation analysis methods in Table 3. Almost all mediation methods require consistency and composition assumptions. If the cross-world independence assumption is violated, semi-parametric method 11 is a viable choice for performing mediation analysis. If we know the confounders that are affected by exposure, effect decomposition proposed by VanderWeele et al. 46 and Mittinty et al., 47 and PSE-MR can be regarded as appropriate solutions. VanderWeele and Vansteelandt 48 and Valeri and VanderWeele 49 provided illustrations and expressions of direct and indirect effects in the presence of additive interaction of the exposure and mediators on the outcome. Recently, VanderWeele 50 proposes a four-way decomposition that, also allowed the existence of interaction. For PSE-MR, factorial MR 42 can be used to estimate causal effects when there are interactions of multiple exposures on the mediators if there are individual data. Notably, multicollinearity among the genetic associations of exposure and mediators may affect the estimation. Therefore, semi-parametric 11 and non-parametric 51 methods were proposed to avoid strict linear conditions.
Comparison of the assumption in PSE-MR and typical causal mediation analysis.
Several methods have been used for time-varying mediation analyses. Vansteelandt et al. 53 provided a new method to perform a mediation analysis of time-to-event endpoints accounting for repeatedly measured mediators subject to time-varying confounding. Zheng and van der Laan 54 proposed a longitudinal mediation analysis with time-varying mediators and exposure with application to survival outcomes. PSE-MR can violate the stringent sequential ignorability assumption. Although several methods have attempted to relax this assumption, only some of these assumptions can be relaxed. For example, many methods only allowed for the existence of confounders between mediators and outcome, and assumed that exposure was randomized,2,12–14 which was difficult to satisfy in observational data; even semi-parametric methods4,11 did not allow for the existence of three types of confounders. All these methods require individual data, except for PSE-MR, which can be performed if only summary data are available. This is an advantage of the PSE-MR.
PSE-MR can estimate the direct effect between exposure and outcome and the indirect effects through mediators when the sequential ignorability assumption
11
in mediation analyses is relaxed. The proposed method requires other independence assumptions. While Assumptions I and III are testable, there is no accepted method to test Assumption II. Several sensitivity analyses can be performed to examine this assumption, such as E-value38,55 and heterogeneity tests. The validity of the multiple mediator PSE-Egger and its ability to estimate consistent causal effects rely on the InSIDE assumption20,56 being satisfied. When the direct genetic associations with exposure are independent of the direct genetic associations with mediators and outcome, the InSIDE assumption is satisfied. Whereas the InSIDE assumption is plausible in some cases, it will not always be valid. For example, heterogeneous populations and misspecification of multiple mediators could bias the mediation effect estimation. When
For multiple causally ordered mediator settings, PSE-MR can be widely used for time-varying exposures and mediators. Labrecque and Swanson 57 suggested that if the genetic associations of the exposure and mediators were time-varying, the lifetime effect estimate could be biased if information on the exposure and mediators was obtained only at one time point. However, if we can obtain the information on the exposure and mediators at different time points, PSE-MR can provide unbiased estimates of the lifetime effects of exposure and mediators on the outcome and other PSEs (refer S2 Appendix, section 9). Thus PSE-MR can estimate each PSE, including causal relationships (which may potentially be bi-directional) in a non-experimental setting.
In conclusion, we propose a method of causal mediation analysis with causally ordered and non-ordered mediators based on summarized genetic data and provide a new perspective for mediation analysis.
Supplemental Material
sj-docx-1-smm-10.1177_09622802221084599 - Supplemental material for Causal mediation analysis with multiple causally non-ordered and ordered mediators based on summarized genetic data
Supplemental material, sj-docx-1-smm-10.1177_09622802221084599 for Causal mediation analysis with multiple causally non-ordered and ordered mediators based on summarized genetic data by Lei Hou, Yuanyuan Yu, Xiaoru Sun, Xinhui Liu, Yifan Yu, Hongkai Li and Fuzhong Xue in Statistical Methods in Medical Research
Supplemental Material
sj-docx-2-smm-10.1177_09622802221084599 - Supplemental material for Causal mediation analysis with multiple causally non-ordered and ordered mediators based on summarized genetic data
Supplemental material, sj-docx-2-smm-10.1177_09622802221084599 for Causal mediation analysis with multiple causally non-ordered and ordered mediators based on summarized genetic data by Lei Hou, Yuanyuan Yu, Xiaoru Sun, Xinhui Liu, Yifan Yu, Hongkai Li and Fuzhong Xue in Statistical Methods in Medical Research
Footnotes
Authors’ contributions
HL and FX conceived the study. LH, HL contributed to theoretical derivation with assistance from YY, XL and XS. LH and YY contributed to the data simulation. LH and HL contributed to the application. LH and HL wrote the manuscript with input from all other authors. All authors reviewed and approved the final manuscript.
Ethics approval and consent to participate
Ethical approval was not sought, because this study involved analysis of publicly available summary-level data from GWASs, and no individual-level data were used.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
HL was supported by the National Natural Science Foundation of China (Grant 82003557). FX was supported by the National Natural Science Foundation of China (Grant 82173625) and the Shandong Provincial Key Research and Development project (2018CXGC1210).
Availability of data and materials
Supplemental Material
Supplemental material for this paper is available online.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
