# 分层评分

分层评分是在给定一组混杂变量的条件下，对病例状态概率的估计值，用于回顾性研究中，在比较结局之前将受试者划分为在这些变量上保持平衡的层。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> 它是倾向性评分的病例对照类似物，后者是前瞻性研究中在给定观测协变量的条件下接受处理分配的条件概率。<sup>[2](https://doi.org/10.1093/biomet/70.1.41)</sup> 按该评分进行分层可使病例和对照在每个层内达到协变量平衡，从而使层内的暴露比较受混杂的影响更小。

| 关键事实 | 详情 |
|---|---|
| 估计的是什么 | \( P(D=1 \mid Z) \)，即在给定混杂变量 \( Z \) 的条件下病例状态的概率，通常通过逻辑回归估计<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> |
| 与倾向性评分的关系 | 回顾性类似物：倾向性评分是在给定协变量的条件下接受处理分配的概率<sup>[2](https://doi.org/10.1093/biomet/70.1.41)</sup> |
| 典型层数 | 五个基于分位数的层，大型研究中可更多<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> |
| 偏倚缩减 | 五个子类可消除由子类化变量所致的90%以上的偏倚，该结果在线性回归下推导得出<sup>[3](https://doi.org/10.2307/2288398)</sup><sup> • </sup><sup>[4](https://doi.org/10.2307/2528036)</sup> |
| 区别于 | 米耶蒂宁的多变量混杂评分，后者将暴露纳入模型<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup><sup> • </sup><sup>[5](https://doi.org/10.1093/oxfordjournals.aje.a112339)</sup> |
| 主要应用场景 | 病例对照研究、遗传关联研究<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)</sup> |

## 工作原理

该方法建立在平衡评分理论之上。罗森鲍姆和鲁宾将倾向性评分定义为在给定观测协变量向量的条件下被分配到某一特定处理的条件概率，并证明当分配是强可忽略的条件下，对这一标量进行调整足以消除所有观测协变量所致的偏倚；此时在平衡评分的每个取值处，处理组与对照组均值之差即为该取值处处理效应的无偏估计。<sup>[2](https://doi.org/10.1093/biomet/70.1.41)</sup> 分层评分将同样的逻辑应用于模型方向相反的情形：它不对给定协变量下的暴露建模，而是对给定混杂变量 \( Z \) 下的病例状态 \( D \) 建模，即 \( P[D \mid Z;\gamma] \)，通常采用逻辑回归。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup>

暴露被排除在模型之外。这使分层评分区别于米耶蒂宁的混杂评分，后者将暴露纳入分层模型。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup><sup> • </sup><sup>[5](https://doi.org/10.1093/oxfordjournals.aje.a112339)</sup> 由于该评分概括了协变量如何预测病例状态，评分相近的受试者在混杂变量方面具有可比性，而由该评分形成的层继承了平衡性质。

## 操作步骤

实际操作步骤与罗森鲍姆和鲁宾于1984年引入的倾向性评分子类化方法平行。<sup>[3](https://doi.org/10.2307/2288398)</sup>

1. 拟合分配模型 \( P[D \mid Z;\gamma] \)，通常为逻辑回归，并计算每位参与者的估计评分。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup>
2. 按研究人群中评分的分位数将参与者分配到固定数量的层；常用五层，大型研究中可使用更多层以更好地控制残余混杂。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup>
3. 检查协变量平衡。对于倾向性评分分层，计算各五分位内的标准化差异，然后跨五分位取平均。<sup>[7](https://journals.sagepub.com/doi/10.1177/0272989X09341755)</sup>
4. 估计每层内的效应并将其合并。分层法的目标估计对象一般为平均处理效应，通过将各层特异性估计以等权重合并来估计；标准化也可以改用对照组中各层的分布，对于罕见病，该分布近似于目标人群的协变量分布。<sup>[8](https://doi.org/10.1002/sim.1903)</sup><sup> • </sup><sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup>

## 起源

其谱系可追溯至倾向性评分的子类化方法。科克伦于1968年证明，五个子类可消除由子类化变量所致的90%以上的偏倚。<sup>[4](https://doi.org/10.2307/2528036)</sup> 罗森鲍姆和鲁宾于1983年建立了平衡评分理论<sup>[2](https://doi.org/10.1093/biomet/70.1.41)</sup>，并于1984年引入了倾向性评分的子类化方法，用冠状动脉疾病数据证明五个子类在1,515名患者中平衡了74个协变量。<sup>[3](https://doi.org/10.2307/2288398)</sup> 米耶蒂宁于1976年提出的多变量混杂评分是一个不同的前身，其中暴露进入了模型。<sup>[5](https://doi.org/10.1093/oxfordjournals.aje.a112339)</sup>

分层评分本身的归属尚无定论。分层评分被引入用于在假设检验时控制混杂。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> 后来一篇《遗传流行病学》论文则将分层评分定义为给定基因组祖源变量下患病的概率，\( \hat{\Theta}(C_j) = \exp(\hat{\alpha} + \hat{\beta}^{T} \cdot C_j) \)。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)</sup> 两篇已发表的论述相互矛盾，因此此处无法指明确定的引入论文。

## 变体

**分层评分精细匹配。** 在病例对照遗传关联研究中，可根据基于基因组祖源变量定义的分层评分将病例和对照分配到匹配层。该匹配策略遵循罗森鲍姆和鲁宾的倾向性评分匹配方法，使用等于对数变换后评分之差绝对值除以合并标准差的不相似度量，并采用罗森鲍姆1991年最优设计刻画意义下的最优全匹配，在R包optmatch中实现。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)</sup><sup> • </sup><sup>[9](https://doi.org/10.1111/j.2517-6161.1991.tb01848.x)</sup>

**预后评分分层。** 汉森的预后评分是倾向性评分的预后类似物，概括协变量与潜在响应的关联，且仅使用对照组进行估计，不同于米耶蒂宁和赵的使用处理组和对照组受试者共同估计的后分层方法。<sup>[10](https://doi.org/10.1093/biomet/asn004)</sup> stratamatch R包通过试点设计实现该方法：从对照组中随机抽取子样本拟合预后模型，在分析集上估计评分，并在层内进行倾向性评分匹配之前按预后评分分位数对分析集分层。<sup>[11](https://journal.r-project.org/articles/RJ-2021-063/RJ-2021-063.pdf)</sup>

**精细分层权重。** 该方法在大量倾向性评分层上进行分层，其模拟中使用10、50或100层，均产生相似的偏倚和精度，层边界仅基于暴露组的倾向性评分分布；当暴露不频繁时，这比五分位分层更有效率。<sup>[12](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-024-02228-z)</sup>

**兼容机器学习的分层。** GPS-CDF方法对来自任意机器学习倾向模型的广义倾向性评分向量的累积分布函数拟合单参数幂函数，产生用于分层或匹配的标量平衡评分。<sup>[13](https://doi.org/10.1002/sim.8846)</sup>

## 应用

主要应用场景是病例对照研究，其中暴露已经发生，平衡必须是回顾性的。该方法曾以非裔美国人精神分裂症遗传关联信息网络研究（2006至2008年）为例进行说明。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> 在该遗传学场景中，分层评分匹配纠正了现有祖源匹配方法未能纠正的人群分层混杂，因为它提高混杂性祖源成分的权重、降低非混杂性成分的权重。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)</sup> 当对照数量远多于处理组受试者，或倾向性评分重叠较差时，预后评分分层最具前景。<sup>[10](https://doi.org/10.1093/biomet/asn004)</sup>

## 局限性与替代方法

**层数与残余偏倚。** 五层、90%偏倚的结果源自科克伦的线性回归设定，未必适用于二分类结局的逻辑回归。<sup>[4](https://doi.org/10.2307/2528036)</sup><sup> • </sup><sup>[14](https://www.archivesofmedicalscience.com/pdf-62558-57815?filename=The-number-of-strata-in-p.pdf)</sup> 一项包含10,000次运行、样本量为1,000至2,000的模拟研究发现，超过五层可提供更高功效和更小偏倚，但超过十层几乎无进一步收益；一种实用策略是同时采用五层和十层。<sup>[14](https://www.archivesofmedicalscience.com/pdf-62558-57815?filename=The-number-of-strata-in-p.pdf)</sup>

**稀疏层。** 当暴露不频繁时，五分位分层可能将所有暴露受试者聚集在一个或多个极端层中。<sup>[12](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-024-02228-z)</sup>

**模型误设与估计。** 分层对评分模型的误设比个体加权估计量更稳健，且混杂的程度可直接在各层中观察到。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)</sup> 在同一数据集上拟合预后评分会引起过拟合担忧，这促使了试点设计的出现；预后评分分层不推荐用于小数据集，尽管对于5,000或以上的样本量，它能显著加速匹配。<sup>[11](https://journal.r-project.org/articles/RJ-2021-063/RJ-2021-063.pdf)</sup> 在遗传学应用中，参数估计对应于边际模型，因此该方法适用于假设检验，而非条件协变量效应的估计。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)</sup>

**与其他方法的比较。** 在奥斯汀的实证案例研究和蒙特卡洛模拟中，倾向性评分匹配和逆处理概率加权比分层或协变量调整消除了更大程度的处理组与未处理组受试者之间的系统性差异，其中匹配与加权相当或略优。<sup>[7](https://journals.sagepub.com/doi/10.1177/0272989X09341755)</sup> 相反，在通过分层的边际均值加权框架内，所研究的三种分层技术在减少偏倚方面均优于逆处理概率加权。<sup>[15](https://pubmed.ncbi.nlm.nih.gov/28074629/)</sup> 重叠权重避免了逆概率加权的极端权重问题，并在倾向性评分通过逻辑回归估计时具有小样本精确平衡性质，其目标为重叠人群中的平均处理效应。<sup>[12](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-024-02228-z)</sup> 伦斯福德和戴维迪安的比较研究综述了通过倾向性评分进行分层和加权的方法，描述了其理论性质，并给出了广泛的性能比较。<sup>[8](https://doi.org/10.1002/sim.1903)</sup>

## References

1. [Control for Confounding in Case-Control Studies Using the Stratification Score, a Retrospective Balancing Score](https://pmc.ncbi.nlm.nih.gov/articles/PMC3070492/)
2. [PAUL R. ROSENBAUM, DONALD B. RUBIN (1983). The central role of the propensity score in observational studies for causal effects. Biometrika.](https://doi.org/10.1093/biomet/70.1.41)
3. [Paul R. Rosenbaum, Donald B. Rubin (1984). Reducing Bias in Observational Studies Using Subclassification on the Propensity Score. Journal of the American Statistical Association.](https://doi.org/10.2307/2288398)
4. [W. G. Cochran (1968). The Effectiveness of Adjustment by Subclassification in Removing Bias in Observational Studies. Biometrics.](https://doi.org/10.2307/2528036)
5. [OLLI S. MIETTINEN (1976). STRATIFICATION BY A MULTIVARIATE CONFOUNDER SCORE. American Journal of Epidemiology.](https://doi.org/10.1093/oxfordjournals.aje.a112339)
6. [Stratification Score Matching Improves Correction for Confounding by Population Stratification in Case-Control Association Studies](https://pmc.ncbi.nlm.nih.gov/articles/PMC3671578/)
7. [The Relative Ability of Different Propensity Score Methods to Balance Measured Covariates Between Treated and Untreated Subjects in Observational Studies (Austin, Medical Decision Making 2009)](https://journals.sagepub.com/doi/10.1177/0272989X09341755)
8. [Jared K. Lunceford, Marie Davidian (2004). Stratification and weighting via the propensity score in estimation of causal treatment effects: a comparative study. Statistics in Medicine.](https://doi.org/10.1002/sim.1903)
9. [Paul R. Rosenbaum (1991). A Characterization of Optimal Designs for Observational Studies. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1991.tb01848.x)
10. [B. B. Hansen (2008). The prognostic analogue of the propensity score. Biometrika.](https://doi.org/10.1093/biomet/asn004)
11. [stratamatch: Prognostic Score Stratification (The R Journal)](https://journal.r-project.org/articles/RJ-2021-063/RJ-2021-063.pdf)
12. [Comparison of two propensity score-based methods for balancing covariates: the overlap weighting and fine stratification methods in real-world claims data (BMC Medical Research Methodology, 2024)](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-024-02228-z)
13. [Thomas J. Greene and colleagues (2020). A machine learning compatible method for ordinal propensity score stratification and matching. Statistics in Medicine.](https://doi.org/10.1002/sim.8846)
14. [The number of strata in propensity score stratification](https://www.archivesofmedicalscience.com/pdf-62558-57815?filename=The-number-of-strata-in-p.pdf)
15. [A comparison of approaches for stratifying on the propensity score to reduce bias (Linden et al., Statistics in Medicine 2017; PubMed record; excerpts merged from author-hosted PDF http://lindenconsulting.org/documents/Pstrata_Article.pdf)](https://pubmed.ncbi.nlm.nih.gov/28074629/)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Estimation theory and estimator families

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/stratification-score

English original: https://www.edgepedia.org/stratification-score
