# 元回归

元回归是元分析中的一种统计技术，它将多项研究的效应量对研究水平的协变量（称为调节变量或效应修饰变量）进行回归，以解释针对同一问题的研究为何得出不同结果。它是亚组分析的连续、多变量推广：将亚组分为两类的划分在数学上就是一个含单个二值协变量的元回归，而通常的随机效应合并估计则是完全不包含协变量的特例。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)</sup><sup> • </sup><sup>[2](https://doing-meta.guide/metareg)</sup><sup> • </sup><sup>[3](https://www.ovid.com/journals/cesm/fulltext/10.1002/cesm.70099~exploring-heterogeneity-in-meta-analysis-using-trial-level)</sup> 在元分析发展之初，理解调节变量的作用就被列为高度优先的事项，而元回归正是实现这一目标的方法。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)</sup>

| 关键事实 | 详情 |
|---|---|
| 产出什么 | 将研究水平协变量与效应量联系起来的回归系数，以及校正后的残差异质性 \( \tau^2 \)<sup>[2](https://doing-meta.guide/metareg)</sup> |
| 底层模型 | 含两个误差项的混合效应回归：研究内抽样误差与研究间异质性<sup>[2](https://doing-meta.guide/metareg)</sup> |
| 估计 | 两步：先估计 \( \tau^2 \)，再以权重 \( w_i = 1/(\hat{\tau}^2 + v_i) \) 进行加权最小二乘估计<sup>[4](https://cran.r-project.org/web/packages/metafor/vignettes/metafor.pdf)</sup> |
| 研究数量的经验法则 | 每个协变量至少 10 项研究<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup> |
| 拟合度量 | 伪 \( R^2 = 1 - \hat{\tau}^2_{\text{unexplained}}/\hat{\tau}^2_{\text{total}} \)<sup>[2](https://doing-meta.guide/metareg)</sup> |
| 推荐的检验 | Knapp–Hartung 校正，可减少假阳性<sup>[2](https://doing-meta.guide/metareg)</sup> |
| 结构性局限 | 生态学（聚合）偏倚：研究水平的关联未必在患者水平上成立<sup>[6](https://casrai.org/guides/meta-regression-in-meta-analysis)</sup> |

## 工作原理

混合效应模型将每个观测到的效应量写成研究水平协变量的线性函数加上两个误差项：\( \hat{\theta}_k = \theta + \beta x_k + \epsilon_k + \zeta_k \)，其中 \( \epsilon_k \) 是抽样误差，即一项研究的效应量偏离其真实效应的部分，\( \zeta_k \) 是方差为 \( \tau^2 \) 的研究间异质性项。<sup>[2](https://doing-meta.guide/metareg)</sup> 这里 \( \tau^2 \) 表示残差异质性，即真实效应中未被调节变量解释的变异。<sup>[7](https://wviechtb.github.io/metafor/reference/metafor-package.html)</sup>

三个模型族对这一残差项的假设各不相同。固定效应元回归假设调节变量解释了全部研究间异质性；一些作者认为不应使用它，因为实践中纳入的调节变量很少能捕捉全部异质性，从而导致第一类错误率过高。<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup> 随机效应（混合）元回归则为残差异质性增加了 \( \tau^2 \) 成分。<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup> 这一区别对推断很重要：固定效应模型以纳入研究的真实效应为条件，而随机效应模型允许推广到纳入研究之外的假设研究总体。<sup>[8](https://search.r-project.org/CRAN/refmans/metafor/html/misc-models.html)</sup><sup> • </sup><sup>[9](https://doi.org/10.1037/1082-989x.3.4.486)</sup>

## 如何实施

拟合是一个两步过程。首先，用 DerSimonian–Laird、Hedges、Hunter–Schmidt、Sidik–Jonkman、最大似然、REML 或经验贝叶斯等估计量估计残差异质性 \( \tau^2 \)；DerSimonian–Laird 估计量本身由 Rebecca DerSimonian 与 Nan Laird 于 1986 年提出。<sup>[4](https://cran.r-project.org/web/packages/metafor/vignettes/metafor.pdf)</sup><sup> • </sup><sup>[10](https://doi.org/10.1016/0197-2456%2886%2990046-2)</sup> 其次，以权重 \( w_i = 1/(v_i + \hat{\tau}^2) \) 通过加权最小二乘估计系数，因此标准误较小的研究获得更高的权重。<sup>[4](https://cran.r-project.org/web/packages/metafor/vignettes/metafor.pdf)</sup><sup> • </sup><sup>[2](https://doing-meta.guide/metareg)</sup>

协变量应在研究方案中预先指定，事后发现的结果应视为提出假设的依据。<sup>[6](https://casrai.org/guides/meta-regression-in-meta-analysis)</sup> 当图形上观察到或由 \( \tau^2 \) 提示存在有临床重要性的治疗效应变异时，应考虑进行元回归，而不是依据卡方、Cochrane Q 或 I 方异质性检验。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC8207572/)</sup> 回归权重的显著性通常用 Wald 型 z 统计量检验，但 Knapp–Hartung 校正往往更可取，因为它考虑了估计 \( \tau^2 \) 时的不确定性并给出基于 t 分布的检验，可降低假阳性风险。<sup>[2](https://doing-meta.guide/metareg)</sup><sup> • </sup><sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup><sup> • </sup><sup>[12](https://doi.org/10.1002/sim.1482)</sup>

模型拟合通过伪 \( R^2 \) 报告，即从随机效应模型到混合效应模型异质性方差的百分比下降。<sup>[2](https://doing-meta.guide/metareg)</sup> 在经典的 13 项研究卡介苗例子中，绝对纬度解释了 75.62% 的异质性，将 \( \tau^2 \) 从 0.3132 降至 0.0764；在约 33.5 度的平均纬度上，估计的平均风险比为 0.49（95% CI 0.39 至 0.60）。<sup>[13](https://www.metafor-project.org/doku.php/tips:computing_adjusted_effects)</sup>

## 起源

他们 1985 年的著作《元分析的统计方法》（*Statistical Methods for Meta-Analysis*）被引为基础性参考文献。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)</sup><sup> • </sup><sup>[14](https://doi.org/10.2307/2531069)</sup> Stanley 与 Stephen B. Jarrell 于 1989 年在《经济调查杂志》（Journal of Economic Surveys）上将元回归分析引入经济学。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)</sup><sup> • </sup><sup>[15](https://doi.org/10.1111/j.0950-0804.2005.00249.x)</sup> 随机效应回归模型由 C. S. Berkey 及其同事于 1995 年在《医学统计学》（Statistics in Medicine）上发表，并以一项关于卡介苗预防结核病效力的元分析为例说明；他们的论文也标志着经验贝叶斯估计量首次在元分析情境中使用。<sup>[1](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)</sup><sup> • </sup><sup>[16](https://doi.org/10.1002/sim.4780140406)</sup><sup> • </sup><sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup> 关于应如何开展和解读元回归的指导来自 Simon G. Thompson 与 Julian P. T. Higgins，于 2002 年发表在《医学统计学》上。<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup><sup> • </sup><sup>[17](https://doi.org/10.1002/sim.1187)</sup>

## 变体

若干扩展将元回归置于更大的模型类别之中。van Houwelingen、Arends 与 Stijnen 2002 年的教程使用近似似然在一般线性混合模型中呈现元回归，涵盖单变量与双变量治疗效应。<sup>[18](https://doi.org/10.1002/sim.1040)</sup> Francesco Sera 及其同事（2019）的 mixmeta 框架将元分析与元回归一般性地定义为线性混合效应模型，将多变量、网络、多水平、剂量反应和纵向元分析与元回归作为特例纳入其中。<sup>[19](https://doi.org/10.1002/sim.8362)</sup> 多水平网络元回归（ML-NMR）由 David M. Phillippo 及其同事于 2020 年发表，将元回归扩展到混合个体数据与聚合数据的人群校正治疗比较。<sup>[20](https://doi.org/10.1111/rssa.12579)</sup>

当研究贡献多个相依效应量时，有三种主要方法对相依性建模：多变量方法、三水平模型，以及带稳健方差估计（RVE）的相关效应模型，后者由 Larry V. Hedges、Elizabeth Tipton 与 Matthew C. Johnson 于 2010 年提出；有研究提出将三水平模型与 RVE 结合以确保名义第一类错误率。<sup>[21](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/22BDF7FF8AAE7AC40E6A6CD32FA7ABD4/S1759287926100921a.pdf/div-class-title-meta-regression-with-categorical-moderators-and-dependent-effect-sizes-a-simulation-study-div.pdf)</sup><sup> • </sup><sup>[22](https://doi.org/10.1002/jrsm.5)</sup> 贝叶斯随机效应元回归在 bayesmeta R 包中实现，该包使用半解析直接算法而非 MCMC，以实现快速、可重复的计算。<sup>[23](https://ar5iv.labs.arxiv.org/html/2209.06004)</sup> RoBMA-reg 将元回归嵌入贝叶斯模型平均，在估计调节变量系数的同时，联合考虑效应存在与否、异质性和发表偏倚的不确定性。<sup>[24](https://fbartos.github.io/RoBMA/articles/v31-robma-metaregression.html)</sup><sup> • </sup><sup>[25](https://link.springer.com/article/10.1007/s10648-026-10172-1)</sup>

## 应用

在 R 中，metafor 包拟合等效应、固定效应和随机效应模型，并通过加入研究水平调节变量来拟合混合效应元回归模型；rma.uni（别名 rma）函数通过 mods 参数提供通用框架，高级推断选项包括 Knapp–Hartung 方法、置换检验和聚类稳健推断。<sup>[7](https://wviechtb.github.io/metafor/reference/metafor-package.html)</sup> meta 包的 metareg 函数只需一个元分析对象和一个协变量名称；test='knha' 应用 Knapp–Hartung 校正，比较模型时推荐 method='ML'。<sup>[2](https://doing-meta.guide/metareg)</sup> Stata 的 meta regress 执行随机效应和固定效应元回归，\( \tau^2 \) 估计量可选 reml、mle、ebayes、dlaird、sjonkman、hedges 或 hschmidt。<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup> mixmeta 包实现了扩展的混合效应框架，<sup>[19](https://doi.org/10.1002/sim.8362)</sup> 而 bayesmeta 3.5 版提供 bmr() 函数用于贝叶斯元回归。<sup>[26](https://cran.uib.no/web/packages/bayesmeta/bayesmeta.pdf)</sup>

当调节变量为连续变量时，不存在单一的平均效应，因此通过将选定的调节变量值代入模型来计算校正效应，类似于边际均值。<sup>[13](https://www.metafor-project.org/doku.php/tips:computing_adjusted_effects)</sup>

## 局限与替代方法

生态学偏倚是结构性局限。将研究水平的关联当作个体水平的关联来处理即为生态学谬误，在此情境下也称为聚合偏倚。<sup>[6](https://casrai.org/guides/meta-regression-in-meta-analysis)</sup> 当某个协变量改变了基线风险但不改变治疗效应时，跨该协变量的不同取值合并数据会使估计的治疗效应偏向无效值。<sup>[27](https://journals.sagepub.com/doi/10.1177/0272989X13485157)</sup> 即使协变量与治疗效应实际上无关，将治疗效应对结局风险进行回归也可能产生高达 -0.71 的虚假相关。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC8207572/)</sup> Jesse A. Berlin 及其同事在 2002 年直接记录了这一问题，他们比较了治疗效应修饰变量的个体患者水平与组水平元回归。<sup>[28](https://doi.org/10.1002/sim.1023)</sup>

由于患者无法被随机分配到协变量取值，元回归本质上是观察性的，并继承了混杂、协变量之间的相关以及无法从关联推断因果等局限。<sup>[27](https://journals.sagepub.com/doi/10.1177/0272989X13485157)</sup> Thompson 与 Higgins 提醒数据挖掘可能是个问题，而研究数量少导致的过拟合是公认的危险。<sup>[17](https://doi.org/10.1002/sim.1187)</sup><sup> • </sup><sup>[23](https://ar5iv.labs.arxiv.org/html/2209.06004)</sup>

检验效能往往很低。被广泛引用的经验法则是每个协变量至少十项研究，因此一个含两个协变量的模型至少需要二十项研究；Stata 手册引用 Borenstein 等（2021）作为该建议的来源，而其他文献将这一法则归因于 Higgins 与 Thompson 2004 年的模拟研究，该研究表明研究数量过少会导致第一类错误率膨胀。<sup>[5](https://www.stata.com/manuals/metametaregress.pdf)</sup><sup> • </sup><sup>[6](https://casrai.org/guides/meta-regression-in-meta-analysis)</sup> 若以少于 10 项研究为界，53%（81 项中的 43 项）已发表的元回归分析存在过拟合风险。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC8207572/)</sup> 每个协变量大约消耗一个自由度，大致相当于一项研究。<sup>[29](https://link.springer.com/article/10.1186/2046-4053-2-107)</sup> Cochrane 元分析（至少包含两项研究的）研究数量中位数为三，这存在问题，因为元回归需要更多研究。<sup>[30](https://doing-meta.guide/power)</sup> 因此，统计上不显著的元回归结果不应被解释为某特征不影响结局的证据。<sup>[29](https://link.springer.com/article/10.1186/2046-4053-2-107)</sup>

个体参与者数据（IPD）元分析相比聚合数据元分析，能够对亚组和患者水平交互作用进行更有力且一致的分析，但时间和资源成本更高；试验内比较避免了生态学偏倚且检验效能高得多，使 IPD 元回归成为个体水平效应修饰的参考标准。<sup>[31](https://pmc.ncbi.nlm.nih.gov/articles/PMC7125394/)</sup><sup> • </sup><sup>[27](https://journals.sagepub.com/doi/10.1177/0272989X13485157)</sup>

## References

1. [A history of meta-regression: Technical, conceptual, and practical developments between 1974 and 2018](https://onlinelibrary.wiley.com/doi/10.1002/jrsm.1338)
2. [Chapter 8 Meta-Regression | Doing Meta-Analysis in R](https://doing-meta.guide/metareg)
3. [Exploring heterogeneity in meta-analysis using trial-level characteristics (Cochrane Evidence Synthesis and Methods tutorial)](https://www.ovid.com/journals/cesm/fulltext/10.1002/cesm.70099~exploring-heterogeneity-in-meta-analysis-using-trial-level)
4. [metafor: A Meta-Analysis Package for R (Journal of Statistical Software vignette)](https://cran.r-project.org/web/packages/metafor/vignettes/metafor.pdf)
5. [Stata [META] meta regress manual](https://www.stata.com/manuals/metametaregress.pdf)
6. [Meta-Regression in Meta-Analysis: Covariates, the Ecological Fallacy, and the 10-Studies Rule](https://casrai.org/guides/meta-regression-in-meta-analysis)
7. [metafor: A Meta-Analysis Package for R, metafor-package](https://wviechtb.github.io/metafor/reference/metafor-package.html)
8. [Fixed-Effects and Random-Effects Models in Meta-Analysis (metafor documentation)](https://search.r-project.org/CRAN/refmans/metafor/html/misc-models.html)
9. [Larry V. Hedges, Jack L. Vevea (1998). Fixed- and random-effects models in meta-analysis.. Psychological Methods.](https://doi.org/10.1037/1082-989x.3.4.486)
10. [Meta-analysis in clinical trials (Controlled Clinical Trials, 1986)](https://doi.org/10.1016/0197-2456%2886%2990046-2)
11. [Most published meta-regression analyses based on aggregate data suffer from methodological pitfalls: a meta-epidemiological study (Geissbühler et al., BMC Medical Research Methodology, 2021)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8207572/)
12. [Guido Knapp, Joachim Hartung (2003). Improved tests for a random effects meta‐regression with a single covariate. Statistics in Medicine.](https://doi.org/10.1002/sim.1482)
13. [Computing Adjusted Effects Based on Meta-Regression Models [The metafor Package]](https://www.metafor-project.org/doku.php/tips:computing_adjusted_effects)
14. [P. R. Freeman, L. V. Hedges, I. Olkin (1986). Statistical Methods for Meta-Analysis.. Biometrics.](https://doi.org/10.2307/2531069)
15. [T. D. Stanley, Stephen B. Jarrell (1989). META‐REGRESSION ANALYSIS: A QUANTITATIVE METHOD OF LITERATURE SURVEYS. Journal of Economic Surveys.](https://doi.org/10.1111/j.0950-0804.2005.00249.x)
16. [C. S. Berkey and colleagues (1995). A random‐effects regression model for meta‐analysis. Statistics in Medicine.](https://doi.org/10.1002/sim.4780140406)
17. [Simon G. Thompson, Julian P. T. Higgins (2002). How should meta‐regression analyses be undertaken and interpreted?. Statistics in Medicine.](https://doi.org/10.1002/sim.1187)
18. [Hans C. van Houwelingen, Lidia R. Arends, Theo Stijnen (2002). Advanced methods in meta‐analysis: multivariate approach and meta‐regression. Statistics in Medicine.](https://doi.org/10.1002/sim.1040)
19. [Francesco Sera and colleagues (2019). An extended mixed‐effects framework for meta‐analysis. Statistics in Medicine.](https://doi.org/10.1002/sim.8362)
20. [David M. Phillippo and colleagues (2020). Multilevel Network Meta-Regression for Population-Adjusted Treatment Comparisons. Journal of the Royal Statistical Society Series A (Statistics in Society).](https://doi.org/10.1111/rssa.12579)
21. [Meta-regression with categorical moderators and dependent effect sizes: A simulation study (Research Synthesis Methods / Cambridge)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/22BDF7FF8AAE7AC40E6A6CD32FA7ABD4/S1759287926100921a.pdf/div-class-title-meta-regression-with-categorical-moderators-and-dependent-effect-sizes-a-simulation-study-div.pdf)
22. [Larry V. Hedges, Elizabeth Tipton, Matthew C. Johnson (2010). Robust variance estimation in meta‐regression with dependent effect size estimates. Research Synthesis Methods.](https://doi.org/10.1002/jrsm.5)
23. [Using the bayesmeta R package for Bayesian random-effects meta-regression](https://ar5iv.labs.arxiv.org/html/2209.06004)
24. [Robust Bayesian Model-Averaged Meta-Regression • RoBMA (package vignette)](https://fbartos.github.io/RoBMA/articles/v31-robma-metaregression.html)
25. [From RAMSing to Rigor: Improving Moderator Analysis in STEM Education Meta-Research (Educational Psychology Review, Springer)](https://link.springer.com/article/10.1007/s10648-026-10172-1)
26. [bayesmeta: Bayesian Random-Effects Meta-Analysis and Meta-Regression (CRAN, version 3.5, dated 2025-08-29)](https://cran.uib.no/web/packages/bayesmeta/bayesmeta.pdf)
27. [Evidence Synthesis for Decision Making 3: Heterogeneity, Subgroups, Meta-Regression, Bias, and Bias-Adjustment (Dias et al., Medical Decision Making 2013 / NICE DSU TSD3)](https://journals.sagepub.com/doi/10.1177/0272989X13485157)
28. [Jesse A. Berlin and colleagues (2002). Individual patient‐ versus group‐level data meta‐regressions for the investigation of treatment effect modifiers: ecological bias rears its ugly head. Statistics in Medicine.](https://doi.org/10.1002/sim.1023)
29. [Risk of bias: a simulation study of power to detect study-level moderator effects in meta-analysis (Systematic Reviews, 2013)](https://link.springer.com/article/10.1186/2046-4053-2-107)
30. [Chapter 14 Power Analysis | Doing Meta-Analysis in R](https://doing-meta.guide/power)
31. [Individual participant data meta-analyses compared with meta-analyses based on aggregate data (Cochrane methodology review)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7125394/)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/meta-regression

English original: https://www.edgepedia.org/meta-regression
