# 中介分析（统计学）

中介分析是一族统计方法，用于评估暴露或处理对结局的效应是否通过二者因果通路上的中间变量——即中介变量——发挥作用，以及发挥作用的程度。中介分析将总效应分解为通过中介变量传递的间接效应和不经过中介变量的直接效应，现代因果推断版本则明确陈述了将该分解作因果解读所依据的假设。<sup>[1](https://pubmed.ncbi.nlm.nih.gov/3806354/)</sup><sup> • </sup><sup>[2](https://dash.harvard.edu/entities/publication/b1683a2b-3e1c-444e-99c0-75f7e7022d6e)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心问题 | 暴露对结局的效应中有多少通过中介变量传递（间接效应），有多少绕开中介变量（直接效应）<sup>[2](https://dash.harvard.edu/entities/publication/b1683a2b-3e1c-444e-99c0-75f7e7022d6e)</sup> |
| 奠基性应用论文 | Baron与Kenny（1986），《人格与社会心理学杂志》51(6): 1173–1182，区分了调节变量与中介变量，并勾勒出因果步骤法<sup>[1](https://pubmed.ncbi.nlm.nih.gov/3806354/)</sup> |
| 关键识别假设 | 序贯可忽略性：暴露-结局关系与暴露-中介关系均无未测量的混杂，且在给定暴露的条件下中介-结局关系无未测量的混杂；该假设无法从观测数据中检验<sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wics.70051)</sup> |
| 自然效应 | 识别需要四个无混杂条件，其中包括：不存在本身受暴露影响的中介-结局混杂因素<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC11821701/)</sup> |
| 控制直接效应 | 仅需前两个无混杂条件，不需要第四个<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/151/causalmed.pdf)</sup> |
| 标准实践 | 对未测量混杂进行敏感性分析，并遵循AGReMA等中介研究报告规范<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC8974292/)</sup> |
| 软件 | R包mediation；SAS PROC CAUSALMED；Valeri与VanderWeele编写的SAS和SPSS宏<sup>[7](https://imai.fas.harvard.edu/research/files/mediationR.pdf)</sup><sup> • </sup><sup>[5](https://support.sas.com/documentation/onlinedoc/stat/151/causalmed.pdf)</sup> |

## 单中介变量模型

在最简单的情形中，暴露X影响中介变量M，M又影响结局Y，由此形成路径图X → M → Y，同时存在一条从X到Y的直接路径。标准回归表述拟合三个方程：X对Y的总效应、X对M的效应（a路径），以及调整X后M对Y的效应（b路径）。间接效应为a系数与b系数的乘积，直接效应为调整M后剩余的X到Y系数。<sup>[8](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2020.02067/full)</sup>

经典的应用方法是康涅狄格大学心理学教授Reuben M. Baron与同样来自康涅狄格大学的David A. Kenny在1986年那篇关于调节变量-中介变量之别的论文中提出的因果步骤法。调节变量是改变预测变量与效标之间关系方向或强度的变量，而中介变量则代表预测变量影响效标的生成机制；该论文的核心目的在于阻止研究者将这两个术语混用。<sup>[1](https://pubmed.ncbi.nlm.nih.gov/3806354/)</sup>因果步骤法检验整体的X-Y关系、X-M关系，以及调整X后的M-Y关系，并考察调整后的直接效应是否小于总效应。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC2821103/)</sup>

## 因果步骤法的局限

模拟研究表明，因果步骤法检测中介效应的功效可能非常低。一个被广泛引用的估计认为，当a路径和b路径的强度都很小、且X与Y的关系全部经由中介传递时，Baron与Kenny的方法大约需要21,000名受试者才能具备足够的效应检测能力（Fritz与MacKinnon，2007）。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC2821103/)</sup>该方法也不直接估计间接效应的大小或其标准误，并且当方向相反的直接效应与间接效应在总效应中相互抵消时，它可能会拒绝一个真实的中介假设。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC2819363/)</sup>

替代检验方法在I类错误控制与功效之间权衡。在一篇对十七种方法的批判性综述中，a路径与b路径的联合显著性检验、非对称的乘积分布检验，以及系数乘积的百分位自助法检验，在那些能充分控制I类错误率的方法中功效最高。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC2920601/)</sup>间接效应之所以倾向于使用自助法，是因为两个系数的乘积在有限样本中不服从正态分布。<sup>[12](https://www.sciencedirect.com/topics/social-sciences/mediation-analysis)</sup>

## 因果中介分析及其假设

自2000年代初起，中介分析在因果推断的潜在结局框架上被重建。哈佛大学政府学教授Kosuke Imai、俄亥俄州立大学的Luke Keele与哈佛大学的Dustin Tingley在《心理学方法》（2010）上指出，传统的线性结构方程模型表述存在问题，因为它缺乏一个不依赖模型的因果中介效应定义，无法陈述关键的识别假设，且难以推广到非线性模型。他们的一般框架将定义、识别、估计与敏感性分析联系起来，可容纳线性与非线性关系、参数与非参数模型，以及连续或离散的中介变量。<sup>[2](https://dash.harvard.edu/entities/publication/b1683a2b-3e1c-444e-99c0-75f7e7022d6e)</sup>

关键假设是序贯可忽略性：在给定已测协变量的条件下，暴露独立于中介变量和结局；且在给定暴露及这些协变量的条件下，中介变量独立于结局。若暴露是随机化的，第一部分自动成立；第二部分则要求中介变量的行为如同随机化一般，而研究者通常无法安排这一点。该假设从根本上无法在经验数据上检验，一旦它不成立，估计值相对于真实因果效应便存在偏倚。<sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wics.70051)</sup>

不同的效应定义要求不同的假设。在Valeri与VanderWeele（2013）的表述下，识别自然直接效应与自然间接效应需要四个无混杂条件：无未测量的处理-结局混杂因素；在给定处理的条件下无未测量的中介-结局混杂因素；无未测量的处理-中介混杂因素；以及不存在受处理影响的中介-结局混杂因素。控制直接效应将中介变量对所有人固定于某一特定值，仅需前两个条件。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/151/causalmed.pdf)</sup>第四个条件最为棘手：一个处理后混杂因素——即位于因果通路上、同时又混杂中介-结局关系的变量——会使自然效应在非参数意义上不可识别，Avin及其同事的“翻供证人”结果便例示了这一失败。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC11821701/)</sup><sup> • </sup><sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC4230499/)</sup>

**干预效应**正是为放宽第四个条件而发展起来的。干预直接效应与干预间接效应将中介变量的分布移动为其潜在值在给定暴露前协变量下的条件分布，而非移动至每个个体自身的潜在中介值，因而在存在受暴露影响的中介-结局混杂因素时仍可识别。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC11821701/)</sup>

## 敏感性分析与设计

由于可忽略性假设无法检验，方法学家建议中介效应估计应辅以敏感性分析。Imai及其同事引入了一个敏感性参数ρ，即中介模型与结局模型误差项之间的相关性；在序贯可忽略性下ρ等于零，考察估计的间接效应保持非零的ρ的范围，便可显示结论对未测量中介-结局混杂的稳健程度。<sup>[7](https://imai.fas.harvard.edu/research/files/mediationR.pdf)</sup><sup> • </sup><sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wics.70051)</sup>在实验研究中，暴露的随机化消除了暴露-中介关系的混杂，敏感性分析通常追问：混杂因素对中介-结局关系的影响需大到何种程度，才能使结论失效。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC4165346/)</sup>

设计提供了另一条路径。操纵中介变量的实验设计，包括平行设计与鼓励设计，可以在不依赖序贯可忽略性的情况下识别因果机制。<sup>[15](https://imai.fas.harvard.edu/research/files/mediationP.pdf)</sup>使用基线协变量与随机分配交互项作为工具变量的工具变量方法，由Ten Have及其同事（2007）、Dunn与Bentall（2007）以及Albert（2008）发展，同样在随机试验中避开了序贯可忽略性假设。<sup>[16](https://arxiv.org/abs/1109.1070)</sup>模拟工作表明，未能测量中介-结局关系的处理后混杂因素，会在所比较的五种方法中的每一种下使间接效应估计产生偏倚，包括回归调整、逆概率加权和序贯g估计。<sup>[8](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2020.02067/full)</sup>

## 扩展与当前实践

哈佛陈曾熙公共卫生学院流行病学教授Tyler J. VanderWeele在2016年的一份实践者指南中总结了现代工具箱：方法如今可处理暴露-中介交互、二值结局与二值中介、病例对照设计、事件时间结局以及多重中介，并配有针对未测量混杂与测量误差的敏感性分析技术。<sup>[17](https://www.annualreviews.org/content/journals/10.1146/annurev-publhealth-032315-021402)</sup>一个较新的方向是高维中介分析，它检验大量复合零假设；《统计学年鉴》2025年的一项应用考察了DNA甲基化CpG位点作为吸烟状况对肺功能影响的潜在中介，数据来自规范衰老研究。<sup>[18](https://doi.org/10.1146/annurev-statistics-040622-031653)</sup>

实现手段可在主流软件中获得：R包mediation实现了Imai框架并附带敏感性分析，<sup>[7](https://imai.fas.harvard.edu/research/files/mediationR.pdf)</sup>SAS的PROC CAUSALMED自SAS/STAT 9.4 TS1M5引入，通过回归方法估计因果中介效应，标准误可采用delta法或自助法，并支持将总效应分解为两个、三个或四个部分。<sup>[5](https://support.sas.com/documentation/onlinedoc/stat/151/causalmed.pdf)</sup>报告由AGReMA声明加以规范，该声明要求作者陈述中介问题、呈现含混杂因素的因果模型、明确所有假设，并报告评估稳健性的敏感性分析。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC8974292/)</sup>

## References

1. [Baron RM, Kenny DA (1986). The moderator-mediator variable distinction in social psychological research. Journal of Personality and Social Psychology 51(6):1173-1182.](https://pubmed.ncbi.nlm.nih.gov/3806354/)
2. [Imai K, Keele L, Tingley D (2010). A General Approach to Causal Mediation Analysis. Psychological Methods 15(4):309-334.](https://dash.harvard.edu/entities/publication/b1683a2b-3e1c-444e-99c0-75f7e7022d6e)
3. [Alfons A (2025). Robust Mediation Analysis: What We Talk About When We Talk About Robustness. WIREs Computational Statistics.](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wics.70051)
4. [Practical challenges in mediation analysis: a guide for applied researchers. Health Services and Outcomes Research Methodology (2025).](https://pmc.ncbi.nlm.nih.gov/articles/PMC11821701/)
5. [The CAUSALMED Procedure, SAS/STAT User's Guide.](https://support.sas.com/documentation/onlinedoc/stat/151/causalmed.pdf)
6. [AGReMA statement: A Guideline for Reporting Mediation Analyses of Randomized Trials and Observational Studies.](https://pmc.ncbi.nlm.nih.gov/articles/PMC8974292/)
7. [Imai K, Keele L, Tingley D, Yamamoto T. Causal mediation analysis via the mediation package (technical documentation).](https://imai.fas.harvard.edu/research/files/mediationR.pdf)
8. [Causal Mediation Analysis in the Presence of Post-treatment Confounding Variables: A Monte Carlo Simulation Study. Frontiers in Psychology (2020).](https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2020.02067/full)
9. [Current Directions in Mediation Analysis (Fritz & MacKinnon and related work).](https://pmc.ncbi.nlm.nih.gov/articles/PMC2821103/)
10. [A Comparison of Methods to Test Mediation and Other Intervening Variable Effects.](https://pmc.ncbi.nlm.nih.gov/articles/PMC2819363/)
11. [Testing Mediation in Nursing Research: Beyond Baron and Kenny.](https://pmc.ncbi.nlm.nih.gov/articles/PMC2920601/)
12. [Mediation Analysis - an overview, ScienceDirect Topics.](https://www.sciencedirect.com/topics/social-sciences/mediation-analysis)
13. [On identification of natural direct effects when a confounder of the mediator is directly affected by exposure.](https://pmc.ncbi.nlm.nih.gov/articles/PMC4230499/)
14. [Guidelines for the Investigation of Mediating Variables in Business Research.](https://pmc.ncbi.nlm.nih.gov/articles/PMC4165346/)
15. [Imai K, Tingley D, Yamamoto T. Experimental designs for identifying causal mechanisms (mediation design paper).](https://imai.fas.harvard.edu/research/files/mediationP.pdf)
16. [Small DS (2011). Mediation Analysis Without Sequential Ignorability: Using Baseline Covariates Interacted with Random Assignment as Instrumental Variables.](https://arxiv.org/abs/1109.1070)
17. [VanderWeele TJ (2016). Mediation Analysis: A Practitioner's Guide. Annual Review of Public Health 37:17-32.](https://www.annualreviews.org/content/journals/10.1146/annurev-publhealth-032315-021402)
18. [Yang H, Liu Z, Wang R, et al. (2025). Causal Mediation Analysis for Integrating Exposure, Genomic, and Phenotype Data. Annual Review of Statistics and Its Application 12:337-360.](https://doi.org/10.1146/annurev-statistics-040622-031653)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Applied, official, and domain statistics › Causal inference (applied methodology) › Causal mediation, moderation, and interference

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mediation-statistics

English original: https://www.edgepedia.org/mediation-statistics
