# 竞争风险模型

竞争风险模型是一种生存分析模型，用于在其他事件类型会使所关注的主要事件无法发生时，估计该事件的风险或累积发生率。只要可能的失效原因不止一种，该模型便应用于医学研究、社会科学、工程学和经济学中。

| 关键事实 | 详情 |
|---|---|
| 可估计量 | 从竞争风险数据中只能识别原因别风险及其函数（如累积发生率函数）<sup>[1](https://grodri.github.io/survival/CompetingRisks.pdf)</sup> |
| 主要汇总指标 | 累积发生率函数，即在任何竞争原因发生之前、截至时间 \( t \) 经历原因 \( k \) 的概率 <sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270105)</sup> |
| 朴素分析存在偏倚 | 将竞争事件视为删失会使卡普兰-迈耶补数高估发生率；在一个心力衰竭队列中，心血管死亡的5年发生率为36.8%，比卡普兰-迈耶补数低6.2个百分点 <sup>[3](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)</sup> |
| 两类主要回归模型 | 原因别Cox模型与Fine-Gray子分布风险模型是两种最常用的半参数选择 <sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/pst.1966)</sup> |
| 模型选择取决于研究问题 | 原因别模型适合病因学问题；Fine-Gray模型适合发生率和预后问题 <sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)</sup> |
| 标准检验 | 比较累积发生率曲线推荐使用Gray的k样本检验，而非对数秩检验 <sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/pst.1966)</sup> |
| 软件 | R包cmprsk、tidycmprsk、survival、mstate和riskRegression；Stata的stcrreg；SAS PROC PHREG；以及较新的Python工具包 <sup>[6](https://cran.r-universe.dev/cmprsk/doc/manual.html)</sup><sup> • </sup><sup>[7](https://cran.r-project.org/web/packages/tidycmprsk/tidycmprsk.pdf)</sup> |

## 工作原理

设 \( T \) 为至首次事件的时间，\( Z \in \{1, \dots, K\} \) 为事件类型。原因 \( k \) 的原因别风险是指当前无事件者（即尚未经历任何事件类型者）中该事件的瞬时发生率 <sup>[3](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)</sup>：

\[ h_{k}^{\mathrm{CS}}(t) = \lim_{\Delta t \to 0} \frac{\Pr(t < T \leq t + \Delta t,\, Z = k \mid T > t)}{\Delta t} \]

由于失效必定归因于恰好一个原因，原因别风险之和即为总体风险，\( h(t) = \sum_{k=1}^{K} h_{k}^{\mathrm{CS}}(t) \)，总体生存率可由其累积和推出。<sup>[1](https://grodri.github.io/survival/CompetingRisks.pdf)</sup> 观测数据的似然仅依赖于这些风险，因此假想的潜在失效时间的边际分布不可识别；只有原因别风险及其函数可以被估计。<sup>[1](https://grodri.github.io/survival/CompetingRisks.pdf)</sup>

核心输出是累积发生率函数（CIF），\( \mathrm{CIF}_{k}(t) = \Pr(T \leq t, Z = k) \)，它由原因别风险按如下方式推出 <sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270105)</sup>：

\[ C_{i}(t) = \int_{0}^{t} h_{i}(u) \exp\left\{ -\int_{0}^{u} \sum_{i=1}^{k} h_{i}(v)\, dv \right\} du \]

子分布风险是为回归而引入的一种替代尺度。Fine和Gray定义了一个非正常随机变量 \( T^{*} = I(\text{事件类型} = k) \cdot T + I(\text{事件类型} \neq k) \cdot \infty \)，称 \( F_{k} \) 为子分布函数，并设定 <sup>[8](https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf)</sup>：

\[ \gamma_{k}(t) = -\frac{d \log[1 - F_{k}(t)]}{dt} \]

两者的决定性差异在于风险集。原因别风险只计入仍无事件的个体；子分布风险则将已经历竞争事件的个体保留在风险集中，因此它描述的是在仍无事件或已因其他原因失效的个体中原因 \( k \) 失效的发生率。<sup>[3](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)</sup><sup> • </sup><sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC3396320/)</sup>

## 实施方法

典型分析分为五步。

1. **编码事件。** 每个个体贡献一个时间与一个原因编码，行政删失作为独立编码。原因别模型将竞争事件视为删失；子分布模型则考虑其信息性本质。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5326634/)</sup>
2. **非参数地估计并比较CIF。** Aalen-Johansen估计量将卡普兰-迈耶估计量推广到竞争风险：它将经历竞争事件的患者从风险集中移除，同时对所关注事件赋予零概率，从而消除了卡普兰-迈耶的高估。<sup>[11](https://www.bmj.com/content/378/bmj-2022-071349)</sup> 在R中，cmprsk的cuminc()与survfit()均可产生这些估计；survfit的Aalen-Johansen估计适用于任意状态空间图，并在简单的两状态生/死模型中退化为卡普兰-迈耶估计。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5326634/)</sup><sup> • </sup><sup>[8](https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf)</sup> 组间比较应使用Gray检验而非对数秩检验。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/pst.1966)</sup>
3. **选择回归模型。** 用标准Cox软件（R中的coxph、SAS中的PROC PHREG、Stata中的stcox）为每个原因各拟合一个原因别Cox模型，或用cmprsk中的crr()、PROC PHREG的eventcode选项或Stata中的stcrreg拟合Fine-Gray模型。<sup>[3](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)</sup> 原因别模型适合病因学问题；Fine-Gray模型适合发生率和预后问题。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)</sup>
4. **检查假设。** 子分布风险的比例性可通过时间交互项或Schoenfeld残差来考察。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5326634/)</sup>
5. **审慎报告。** 一项对2015年医学文章的综述发现，许多作者对Fine-Gray系数的解释不清或错误；在使用该模型的55项研究中，44项（80%）至少展示了一条CIF曲线。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)</sup>

tidycmprsk包提供单变量累积发生率估计和竞争风险回归，其方法遵循Fine和Gray（1999）。<sup>[7](https://cran.r-project.org/web/packages/tidycmprsk/tidycmprsk.pdf)</sup>

## 起源

现代竞争风险分析成形于20世纪70年代末。R. L. Prentice及其同事的论文《竞争风险存在下的失效时间分析》于1978年12月发表于《生物统计学》。<sup>[12](https://doi.org/10.2307/2530374)</sup> 该文以假设缺乏依据、缺乏物理解释及可识别性问题为由批评了潜在失效时间方法，并提出原因别风险函数作为竞争风险框架中的基本可估计量。<sup>[12](https://doi.org/10.2307/2530374)</sup> 在这一可识别性批判之后，该领域的兴趣转向估计可识别的竞争风险概率。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270105)</sup>

另外两篇论文奠定了当前的工具集。Robert J. Gray于1988年发表于《统计学年鉴》的论文《一类用于比较竞争风险累积发生率的K样本检验》提供了非参数比较检验。<sup>[13](https://doi.org/10.1214/aos/1176350951)</sup> Jason P. Fine与Robert J. Gray于1999年发表于《美国统计协会杂志》的论文《竞争风险子分布的比例风险模型》提供了回归模型。<sup>[14](https://doi.org/10.1080/01621459.1999.10474144)</sup>

## 变体

- **原因别Cox模型。** 每个原因一个Cox模型，用标准软件拟合；所得风险再合并为CIF。此方法需要为每种事件类型各建一个模型，且不直接给出协变量在累积发生率尺度上的效应。<sup>[11](https://www.bmj.com/content/378/bmj-2022-071349)</sup>
- **Fine-Gray回归。** 模型 \( h_{k}^{\mathrm{FG}}(t \mid x) = h_{k0}^{\mathrm{FG}}(t) \exp(x' \cdot \gamma_{k}) \) 对子分布风险做回归，使用逆概率加权处理删失，常被描述为带互补对数-对数链接的CIF回归模型。<sup>[15](https://ar5iv.labs.arxiv.org/html/2212.05157)</sup>
- **多状态模型。** Liesbeth C. de Wreede、Marta Fiocco和Hein Putter（2011）开发的mstate R包在统一框架中处理竞争风险和多状态模型。<sup>[16](https://doi.org/10.18637/jss.v038.i07)</sup>
- **比例优势CIF模型。** Frank Eriksson及其同事（2015）提出的累积发生率尺度上的直接模型。<sup>[17](https://doi.org/10.1111/biom.12330)</sup>
- **机器学习扩展。** Hemant Ishwaran及其同事于2014年将随机生存森林扩展至竞争风险（RSFCR），用以估计CIF。<sup>[18](https://doi.org/10.1093/biostatistics/kxu010)</sup>

## 应用

在**肿瘤学试验**中，事件特异性治疗差异的检验可基于原因别风险（通过对数秩检验）或基于累积发生率函数（通过Gray型检验），而同一终点的推断结果在两种度量之间可能差异很大。<sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC2654314/)</sup>

在**心脏病学**中，竞争风险的出现是因为非心血管死亡会使心血管结局无法发生。在上述心力衰竭示例中，估计量的选择使5年心血管死亡发生率相差6.2个百分点。<sup>[3](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)</sup>

在**移植**领域，一个大型欧洲肾移植队列显示，移植物失败的累积发生率估计因将受者死亡视为删失还是竞争事件而存在实质性差异 <sup>[11](https://www.bmj.com/content/378/bmj-2022-071349)</sup>，骨髓移植研究则以死亡前复发的CIF作为标准终点。<sup>[20](https://scikit-survival.readthedocs.io/en/stable/user_guide/competing-risks.html)</sup>

这些方法并非医学专用。R和Stata中均有软件与指南，同一框架也适用于社会科学、工程学和经济学。<sup>[21](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-040522-094556)</sup>

## 局限性与替代方案

**卡普兰-迈耶偏倚。** 将竞争事件视为删失会使卡普兰-迈耶累积发生率向上偏倚，而将各原因的卡普兰-迈耶发生率相加可能得出超过100%的不可能概率。<sup>[11](https://www.bmj.com/content/378/bmj-2022-071349)</sup> 高估的失效概率又可能导致对患者的过度治疗。<sup>[22](https://link.springer.com/article/10.1186/s12874-023-01866-z)</sup>

**无效的非信息性删失。** 在竞争事件处删失的原因别Cox模型可以在不假设不同事件类型相互独立的情况下估计原因别风险，尽管某些解释或风险估计需要该假设。<sup>[24](https://academic.oup.com/eurheartj/article/35/42/2936/784255)</sup> 经历竞争事件的患者通常更为虚弱、所关注结局的风险更高，因此该假设可能不成立。<sup>[23](https://www.jacc.org/doi/10.1016/j.jacc.2024.06.023)</sup>

**子分布风险比的解释。** Fine-Gray模型报告子分布风险比（SHR），但SHR仅传达CIF曲线的排序，而非其相对距离，且在无竞争风险时并不具有风险比的实际解释。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC5326634/)</sup> 除非所关注事件罕见，SHR与CIF的相对变化之间没有精确联系。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)</sup>

**模型敏感性。** 模型拟合的充分性会强烈影响推断的有效性，因此在设计预期存在竞争风险的试验时，建议进行诊断并为替代模型准备应急方案。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/pst.1966)</sup>

**一场持续的争论。** 对Fine-Gray模型的方法学意见存在分歧。一篇2024年的心脏病学方法学论文认为，“常用的Fine和Gray模型通常最好避免，因为它常被不当使用且可能产生误导”，在多数心血管试验中更倾向于使用传统Cox模型并辅以多重插补等敏感性分析。<sup>[23](https://www.jacc.org/doi/10.1016/j.jacc.2024.06.023)</sup> 报告指南与《统计学年鉴》则将该模型视为一种标准、易于拟合的方法，只要解释和报告得当，就适合发生率和预后问题。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)</sup><sup> • </sup><sup>[21](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-040522-094556)</sup> 双方都同意不存在唯一的正确答案，结论应在一系列假设下保持一致。<sup>[23](https://www.jacc.org/doi/10.1016/j.jacc.2024.06.023)</sup>

**替代方案。** 多状态模型将竞争风险推广到任意状态安排，并有专用软件支持。<sup>[16](https://doi.org/10.18637/jss.v038.i07)</sup><sup> • </sup><sup>[8](https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf)</sup>

## References

1. [Competing Risks (course notes, German Rodriguez)](https://grodri.github.io/survival/CompetingRisks.pdf)
2. [A Review of Statistical Analyses for Competing Risks](https://www.sciencedirect.com/science/article/abs/pii/S0169716107270105)
3. [Introduction to the Analysis of Survival Data in the Presence of Competing Risks (Circulation)](https://www.ahajournals.org/doi/full/10.1161/CIRCULATIONAHA.115.017719)
4. [Planning and analyzing clinical trials with competing risks (Pharmaceutical Statistics)](https://onlinelibrary.wiley.com/doi/10.1002/pst.1966)
5. [Practical recommendations for reporting Fine-Gray model analyses for competing risk data (Statistics in Medicine)](https://onlinelibrary.wiley.com/doi/10.1002/sim.7501)
6. [Package 'cmprsk' reference manual](https://cran.r-universe.dev/cmprsk/doc/manual.html)
7. [tidycmprsk: Competing Risks Estimation (CRAN documentation)](https://cran.r-project.org/web/packages/tidycmprsk/tidycmprsk.pdf)
8. [Multi-state models and competing risks (survival package vignette)](https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf)
9. [Competing risks in epidemiology: possibilities and pitfalls](https://pmc.ncbi.nlm.nih.gov/articles/PMC3396320/)
10. [Survival analysis in the presence of competing risks](https://pmc.ncbi.nlm.nih.gov/articles/PMC5326634/)
11. [Bias by censoring for competing events in survival analysis (BMJ)](https://www.bmj.com/content/378/bmj-2022-071349)
12. [R. L. Prentice and colleagues (1978). The Analysis of Failure Times in the Presence of Competing Risks. Biometrics.](https://doi.org/10.2307/2530374)
13. [Robert J. Gray (1988). A Class of $K$-Sample Tests for Comparing the Cumulative Incidence of a Competing Risk. The Annals of Statistics.](https://doi.org/10.1214/aos/1176350951)
14. [Jason P. Fine, Robert J. Gray (1999). A Proportional Hazards Model for the Subdistribution of a Competing Risk. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1999.10474144)
15. [A review on competing risks methods for survival analysis (arXiv 2212.05157)](https://ar5iv.labs.arxiv.org/html/2212.05157)
16. [Liesbeth C. de Wreede, Marta Fiocco, Hein Putter (2011). mstate : An R Package for the Analysis of Competing Risks and Multi-State Models. Journal of Statistical Software.](https://doi.org/10.18637/jss.v038.i07)
17. [Frank Eriksson and colleagues (2015). The proportional odds cumulative incidence model for competing risks. Biometrics.](https://doi.org/10.1111/biom.12330)
18. [Hemant Ishwaran and colleagues (2014). Random survival forests for competing risks. Biostatistics.](https://doi.org/10.1093/biostatistics/kxu010)
19. [Choice and Interpretation of Statistical Tests Used When Competing Risks Are Present (Journal of Clinical Oncology, 2008)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2654314/)
20. [Analysis of Competing Risks (scikit-survival user guide)](https://scikit-survival.readthedocs.io/en/stable/user_guide/competing-risks.html)
21. [Competing Risks: Concepts, Methods, and Software (Annual Review of Statistics)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-040522-094556)
22. [Statistical models versus machine learning for competing risks (BMC Medical Research Methodology, 2023)](https://link.springer.com/article/10.1186/s12874-023-01866-z)
23. [Competing Risks in Clinical Trials: Do They Matter and How Should We Account for Them? (JACC, 2024)](https://www.jacc.org/doi/10.1016/j.jacc.2024.06.023)
24. [academic.oup.com](https://academic.oup.com/eurheartj/article/35/42/2936/784255)

---
*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/competing-risk-model

English original: https://www.edgepedia.org/competing-risk-model
