# 倾向评分加权

倾向评分加权是观察性研究中用于因果推断的一种统计方法，它按每名受试者实际接受治疗之估计概率的倒数进行加权，从而使测量到的协变量在治疗组间达到平衡，进而估计因果效应。倾向评分本身由保罗·R.罗森鲍姆（Paul R. Rosenbaum）与唐纳德·B.鲁宾（Donald B. Rubin）于1983年定义为在给定观测协变量条件下被分配到治疗组的条件概率，而加权所取倒数者正是这一数量。<sup>[1](https://doi.org/10.1093/biomet/70.1.41)</sup> 这种加权方法通常称为逆概率治疗加权（IPTW），是倾向评分的四种标准用途之一，另外三种为协变量调整、分层和匹配。<sup>[2](https://onlinelibrary.wiley.com/doi/10.1002/sim.6607)</sup>

| 关键事实 | 细节 |
|---|---|
| ATE权重 | 若接受治疗，\( w_{i} = 1/p_{i} \)；若未接受治疗，\( 1/(1-p_{i}) \)，其中 \( p_{i} = P(A=1 \mid X_{i}) \)<sup>[3](https://iqss.github.io/dss-ps/conditioning.html)</sup> |
| ATT权重 | 接受治疗者为1，未接受治疗者为 \( p_{i}/(1-p_{i}) \)（按几率加权）<sup>[3](https://iqss.github.io/dss-ps/conditioning.html)</sup><sup> • </sup><sup>[4](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_psmatch_details05.htm)</sup> |
| 重叠权重（ATO） | 接受治疗者为 \( 1-p_{i} \)，未接受治疗者为 \( p_{i} \)；取值限于0与1之间<sup>[3](https://iqss.github.io/dss-ps/conditioning.html)</sup><sup> • </sup><sup>[5](https://www2.stat.duke.edu/~fl35/papers/psweight_final.pdf)</sup> |
| 平衡目标 | 所有协变量的绝对标准化差异在0.1以内<sup>[6](https://cran.r-project.org/web/packages/PSweight/vignettes/Software_vig.pdf)</sup> |
| 权重诊断 | 平均稳定化权重接近1；最大稳定化权重低于10<sup>[4](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_psmatch_details05.htm)</sup> |
| 方差 | 稳健三明治估计量或自助法估计量，需考虑权重为估计所得<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup> |
| 小样本警示 | 样本量低于150时慎用IPTW，因方差会被低估<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup> |

## 工作原理

倾向评分 \( p_{i} = P(A=1 \mid X_{i}) \) 具有平衡性质：在评分的层内，治疗状态与观测协变量独立。罗森鲍姆与鲁宾证明，按真实倾向评分进行调整，等价于按用于计算该评分的全部协变量进行调整；并且倾向评分是最粗的平衡评分，协变量本身则是最细的平衡评分。<sup>[1](https://doi.org/10.1093/biomet/70.1.41)</sup><sup> • </sup><sup>[3](https://iqss.github.io/dss-ps/conditioning.html)</sup>

加权构造出一个伪人群。一名倾向评分为0.25的暴露患者获得权重4，而倾向评分相同的非暴露患者获得权重1.33；加权之后，测量到的混杂因素在暴露组与非暴露组之间分布相同，从而模拟了一项治疗与协变量独立的随机试验。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup> 因果效应的识别要求治疗分配强可忽略，即 \( (Y_{0}, Y_{1}) \perp A \mid X \)，这也称为无未测量混杂假设。<sup>[8](https://doi.org/10.1002/sim.1903)</sup>

## 操作步骤

工作流程分为四个阶段。第一，拟合倾向模型，最常用的是以协变量对治疗做逻辑回归，也可选用广义提升模型、BART和Super Learner。<sup>[3](https://iqss.github.io/dss-ps/conditioning.html)</sup> 第二，以观测到的治疗概率之倒数计算权重，最好采用稳定化形式，即在分子上使用边际暴露比例，以降低方差。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup> 第三，检查重叠与平衡：考察倾向评分分布的重叠情况，核实平均稳定化权重接近1、最大值低于10，并用绝对标准化差异评估协变量平衡，目标为取值在0.1以内，通常以Love图展示。一项系统综述发现，近期IPTW研究中的大多数并未正式检验加权是否使测量到的协变量达到平衡。<sup>[2](https://onlinelibrary.wiley.com/doi/10.1002/sim.6607)</sup><sup> • </sup><sup>[4](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_psmatch_details05.htm)</sup><sup> • </sup><sup>[6](https://cran.r-project.org/web/packages/PSweight/vignettes/Software_vig.pdf)</sup> 第四，在加权样本中拟合结局模型，并用稳健三明治型或自助法估计量估计标准误，因为权重是估计所得而非已知，且加权会在个体内引入相关性。<sup>[2](https://onlinelibrary.wiley.com/doi/10.1002/sim.6607)</sup><sup> • </sup><sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup>

## 起源

倾向评分由保罗·R.罗森鲍姆与唐纳德·B.鲁宾于1983年在《生物计量学》上提出，其基础是鲁宾1974年在潜在结局框架下对因果效应的表述。<sup>[1](https://doi.org/10.1093/biomet/70.1.41)</sup><sup> • </sup><sup>[9](https://doi.org/10.1037/h0037350)</sup> 加权思想源自调查抽样中的霍维茨-汤普森逆概率权重，由D. G.霍维茨（D. G. Horvitz）与D. J.汤普森（D. J. Thompson）于1952年在《美国统计协会杂志》上发表。<sup>[10](https://doi.org/10.1080/01621459.1952.10483446)</sup><sup> • </sup><sup>[11](https://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC3144483&blobtype=pdf)</sup><sup> • </sup><sup>[12](https://arxiv.org/pdf/2412.00280)</sup><sup> • </sup><sup>[13](https://doi.org/10.1080/01621459.1987.10478441)</sup>

稳定化权重由詹姆斯·M.罗宾斯（James M. Robins）、米格尔·安赫尔·埃尔南（Miguel Ángel Hernán）与巴贝特·布伦巴克（Babette Brumback）于2000年在《流行病学》上结合边际结构模型提出。<sup>[14](https://doi.org/10.1097/00001648-200009000-00011)</sup> 加权估计量与分层估计量的比较理论，包括方差性质和双重稳健增广估计量，由贾里德·K.伦斯福德（Jared K. Lunceford）与玛丽·达维迪安（Marie Davidian）于2004年在《医学统计学》上发展。<sup>[8](https://doi.org/10.1002/sim.1903)</sup> 罗森鲍姆与鲁宾在2022年《生物计量学》的回顾文章中重访了1983年的论文，重申倾向评分不涉及任何结局变量，是设计工具而非分析工具。<sup>[15](https://doi.org/10.1093/biomet/asac054)</sup>

## 变体

**稳定化权重**将未稳定化权重乘以观测治疗的边际概率：暴露者用暴露比例除以倾向评分，非暴露者用非暴露比例除以 \( 1-p_{i} \)。<sup>[31](https://pmc.ncbi.nlm.nih.gov/articles/PMC5672960/)</sup><sup> • </sup><sup>[32](https://pmc.ncbi.nlm.nih.gov/articles/PMC4626409/)</sup> 它们能降低效应估计的方差，且对连续暴露是必需的；对于二分类治疗的饱和边际模型，它们与未稳定化权重给出相同结果。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup><sup> • </sup><sup>[16](https://www.jstage.jst.go.jp/article/jea/31/8/31_JE20210145/_pdf/-char/en)</sup>

**截断与修剪**以不同方式处理极端权重。截断将权重限制在预先设定的百分位数上，常用第1和第99百分位数，保留原目标人群但引入偏倚；修剪则剔除倾向评分范围之外的观测，这会彻底改变估计目标（即统计分析所要估计的具体数量）。按照克伦普（Crump）及其同事的做法，修剪阈值 \( \alpha \) 一般取在 \( [0.05, 0.2] \) 内。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup><sup> • </sup><sup>[17](https://arxiv.org/html/2511.10077v1)</sup><sup> • </sup><sup>[18](https://doi.org/10.1093/biomet/asn055)</sup> 作为一般性补救措施的权重修剪由布莱恩·K.李（Brian K. Lee）、贾斯汀·莱斯勒（Justin Lessler）与伊丽莎白·A.斯图尔特（Elizabeth A. Stuart）于2011年在《公共科学图书馆·综合》上考察。<sup>[19](https://doi.org/10.1371/journal.pone.0018174)</sup>

**均衡权重**通过构造方式避免极端权重。重叠权重按每单位接受相反治疗的概率对其加权；已发表文献对于发展功劳应归于2018年的论文还是李（Li）、摩根（Morgan）与扎斯拉夫斯基（Zaslavsky）更早的工作存在分歧，此处两者并引。<sup>[20](https://doi.org/10.1111/1468-0262.00442)</sup><sup> • </sup><sup>[21](https://doi.org/10.1093/aje/kwy201)</sup><sup> • </sup><sup>[17](https://arxiv.org/html/2511.10077v1)</sup> 重叠权重取值限于0与1之间，在平衡权重中使加权治疗效应的渐近方差最小，并在逻辑回归倾向模型下给出协变量均值的精确平衡。<sup>[5](https://www2.stat.duke.edu/~fl35/papers/psweight_final.pdf)</sup> 匹配权重是配对匹配的加权类比，由李亮（Liang Li）与汤姆·格林（Tom Greene）于2013年提出；其权重在构造上有界，目标是匹配人群的平均处理效应（ATM）。<sup>[22](https://doi.org/10.1515/ijb-2012-0030)</sup><sup> • </sup><sup>[23](https://www.bmj.com/content/367/bmj.l5657)</sup>

**双重稳健增广加权**在加权估计量上加入一个结局回归。当倾向模型或结局模型之一被正确设定时，增广估计量即一致；当两者都正确时，它达到半参数效率下界。<sup>[6](https://cran.r-project.org/web/packages/PSweight/vignettes/Software_vig.pdf)</sup><sup> • </sup><sup>[24](https://doi.org/10.1111/j.1541-0420.2005.00377.x)</sup>

## 应用

在一项以PARADIGM-HF为基准的2025年试验模拟中，使用预设混杂因素的逻辑回归给出的估计最接近试验结果（风险比0.93，95%置信区间0.61–1.42，而试验为0.81，95%置信区间0.61–1.06）；使用相同混杂因素的梯度提升未见改善（风险比0.97，95%置信区间0.68–1.37），而采用自动特征选择的梯度提升大幅增加了偏倚（风险比0.61，95%置信区间0.30–1.23），与过度调整相符。作者结论是，机器学习倾向评分并不天然改善因果估计，仔细选择混杂因素比算法复杂度更重要。<sup>[25](https://link.springer.com/article/10.1007/s10654-025-01341-7)</sup>

## 局限与替代方法

通过倾向评分进行因果推断要求一致性、可交换性、正值性，以及倾向评分模型无设定错误。<sup>[2](https://onlinelibrary.wiley.com/doi/10.1002/sim.6607)</sup> 该方法只能处理测量到的混杂因素；未测量混杂依然存在。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)</sup> 在一项未测量混杂集中于倾向评分尾部的模拟中，只有施蒂尔默（Stürmer）式和沃克（Walker）式修剪能持续减少偏倚，而克伦普式修剪不能；重叠权重、匹配权重和熵权重尽管降低了尾部权重，也未能减少这一偏倚。<sup>[26](https://academic.oup.com/aje/article/190/8/1659/6146006)</sup><sup> • </sup><sup>[27](https://doi.org/10.1093/aje/kwq198)</sup>

在协变量重叠不佳、非信息性删失比例高或正值性被违反时，表现会下降，对事件发生时间结局尤其如此；IPTW保留整个样本，在大数据集中精确，但在整群设计中无论群数多少都会产生不精确的标准误。<sup>[28](https://pmc.ncbi.nlm.nih.gov/articles/PMC13081297/)</sup> 当治疗效应随倾向评分变化时，IPTW-ATE与匹配-ATT的估计可能相差很大，而两者都可能正确，因为它们回答的是不同的问题；估计目标的选择应当决定方法的选择。<sup>[29](https://journals.sagepub.com/doi/10.1177/0962280213507034)</sup>

一项2023年之后的系统综述发现，IPTW，尤其是与双重稳健方法或稳定化权重结合时，均方误差低、推断可靠，在边际效应上优于倾向评分匹配和分层；双重稳健IPTW估计量产生的标准误最小，方差估计最准确。<sup>[28](https://pmc.ncbi.nlm.nih.gov/articles/PMC13081297/)</sup> 2024年12月的一项中立比较在18万个模拟数据集上比较了IPTW、能量平衡、核最优匹配和定制损失协变量平衡倾向评分，结论是：当重叠强且倾向模型设定良好时，IPTW是自然之选，但在重叠有限或存在合理设定错误时变得脆弱，此时能量平衡和核最优匹配可作为三角验证的候选方法。<sup>[12](https://arxiv.org/pdf/2412.00280)</sup> 能量平衡本身由贾里德·D.胡林（Jared D. Huling）与西蒙·麦（Simon Mak）于2024年在《因果推断杂志》上提出。<sup>[30](https://doi.org/10.1515/jci-2022-0029)</sup>

## References

1. [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)
2. [Moving towards best practice when using IPTW using the propensity score (Austin & Stuart, Statistics in Medicine)](https://onlinelibrary.wiley.com/doi/10.1002/sim.6607)
3. [Matching and Weighting for Causal Inference: A Primer and Tutorial, Chapter 5: Conditioning](https://iqss.github.io/dss-ps/conditioning.html)
4. [SAS Documentation: PROC PSMATCH, Propensity Score Weighting](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_psmatch_details05.htm)
5. [Balancing Covariates via Propensity Score Weighting (Li, Morgan & Zaslavsky, JASA 2018)](https://www2.stat.duke.edu/~fl35/papers/psweight_final.pdf)
6. [Propensity Score Weighting in R: A Vignette (PSweight package)](https://cran.r-project.org/web/packages/PSweight/vignettes/Software_vig.pdf)
7. [An introduction to inverse probability of treatment weighting in observational research (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8757413/)
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. [Donald B. Rubin (1974). Estimating causal effects of treatments in randomized and nonrandomized studies.. Journal of Educational Psychology.](https://doi.org/10.1037/h0037350)
10. [D. G. Horvitz, D. J. Thompson (1952). A Generalization of Sampling Without Replacement from a Finite Universe. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1952.10483446)
11. [Austin, 'An Introduction to Propensity Score Methods' (Multivariate Behavioral Research), via Europe PMC](https://europepmc.org/backend/ptpmcrender.fcgi?accid=PMC3144483&blobtype=pdf)
12. [Neutral comparison of IPTW, energy balancing, kernel optimal matching, and tailored-loss covariate balancing propensity scores (arXiv preprint, December 2024)](https://arxiv.org/pdf/2412.00280)
13. [Paul R. Rosenbaum (1987). Model-Based Direct Adjustment. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1987.10478441)
14. [James M. Robins, Miguel Ángel Hernán, Babette Brumback (2000). Marginal Structural Models and Causal Inference in Epidemiology. Epidemiology.](https://doi.org/10.1097/00001648-200009000-00011)
15. [P R Rosenbaum, D B Rubin (2022). Propensity scores in the design of observational studies for causal effects. Biometrika.](https://doi.org/10.1093/biomet/asac054)
16. [Using Propensity Scores for Causal Inference: Pitfalls and Tips (Journal of Epidemiology)](https://www.jstage.jst.go.jp/article/jea/31/8/31_JE20210145/_pdf/-char/en)
17. [A tutorial for propensity score weighting methods under violations of the positivity assumption (arXiv preprint, 2025)](https://arxiv.org/html/2511.10077v1)
18. [R. K. Crump and colleagues (2009). Dealing with limited overlap in estimation of average treatment effects. Biometrika.](https://doi.org/10.1093/biomet/asn055)
19. [Brian K. Lee, Justin Lessler, Elizabeth A. Stuart (2011). Weight Trimming and Propensity Score Weighting. PLoS ONE.](https://doi.org/10.1371/journal.pone.0018174)
20. [Keisuke Hirano, Guido W. Imbens, Geert Ridder (2003). Efficient Estimation of Average Treatment Effects Using the Estimated Propensity Score. Econometrica.](https://doi.org/10.1111/1468-0262.00442)
21. [Fan Li, Laine E Thomas (2018). Addressing Extreme Propensity Scores via the Overlap Weights. American Journal of Epidemiology.](https://doi.org/10.1093/aje/kwy201)
22. [Liang Li, Tom Greene (2013). A Weighting Analogue to Pair Matching in Propensity Score Analysis. The International Journal of Biostatistics.](https://doi.org/10.1515/ijb-2012-0030)
23. [Propensity score weighting (BMJ tutorial)](https://www.bmj.com/content/367/bmj.l5657)
24. [Heejung Bang, James M. Robins (2005). Doubly Robust Estimation in Missing Data and Causal Inference Models. Biometrics.](https://doi.org/10.1111/j.1541-0420.2005.00377.x)
25. [Machine learning versus logistic regression for propensity score estimation: a trial emulation benchmarked against the PARADIGM-HF randomized trial (European Journal of Epidemiology, 2025)](https://link.springer.com/article/10.1007/s10654-025-01341-7)
26. [Propensity Score Weighting and Trimming Strategies for Reducing Variance and Bias of Treatment Effect Estimates: A Simulation Study (American Journal of Epidemiology)](https://academic.oup.com/aje/article/190/8/1659/6146006)
27. [T. Sturmer and colleagues (2010). Treatment Effects in the Presence of Unmeasured Confounding: Dealing With Observations in the Tails of the Propensity Score Distribution--A Simulation Study. American Journal of Epidemiology.](https://doi.org/10.1093/aje/kwq198)
28. [Performance of propensity score methods in observational studies: a systematic review (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC13081297/)
29. [Propensity score estimators for the average treatment effect and the average treatment effect on the treated may yield very different estimates (Statistical Methods in Medical Research)](https://journals.sagepub.com/doi/10.1177/0962280213507034)
30. [Jared D. Huling, Simon Mak (2024). Energy balancing of covariate distributions. Journal of Causal Inference.](https://doi.org/10.1515/jci-2022-0029)
31. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC5672960/)
32. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC4626409/)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/propensity-score-weighting

English original: https://www.edgepedia.org/propensity-score-weighting
