# 加速失效时间模型

加速失效时间（AFT）模型是一种生存分析回归模型，它假定协变量以乘性方式作用于事件发生时间，使其加速或减慢，而非作用于风险函数。<sup>[1](https://ast405.netlify.app/life/ch06.pdf)</sup> 其核心量是加速因子 \( \exp(\beta) \)：协变量每增加一个单位，预期生存时间乘以 \( \exp(\beta) \)，因此因子为 1.5 意味着生存时间是原来的 1.5 倍，而因子小于 1 则加速失效。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> 由于它直接将生存时间的对数对协变量做回归，该模型估计的是时间比，比风险比更易于沟通，并且可以拟合比例风险假定不成立的数据。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义方程 | \( \log(T) = \beta_0 + \beta_1 \cdot x + \sigma \varepsilon \)；误差分布 ε 决定模型族<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> |
| 效应度量 | 加速因子 \( \exp(\beta) \)，即适用于整个事件时间分布的时间比<sup>[3](https://arxiv.org/html/2401.04832)</sup> |
| 参数变体 | Weibull、指数、伽马、对数逻辑斯蒂和对数正态形式，分别对应极值、极值、对数伽马、逻辑斯蒂和正态误差分布<sup>[4](https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/AFT-tutorial.pdf)</sup> |
| Weibull–PH 联系 | 只有 Weibull AFT 模型同时也是比例风险模型；在参数化 \( \log T = \mu + \alpha' z + \sigma W \)（极值误差）下，风险比为 \( \exp(-\alpha' z/\sigma) \)<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup><sup> • </sup><sup>[26](https://cran.r-project.org/web/packages/SurvRegCensCov/vignettes/weibull.pdf)</sup> |
| 拟合 | 在右删失、区间删失或左删失下的参数最大似然<sup>[5](https://cran.r-project.org/web/packages/eha/vignettes/parametric1.pdf)</sup><sup> • </sup><sup>[6](https://www.ripublication.com/ijss17/ijssv12n2_15.pdf)</sup> |
| 软件 | R 的 survreg() 和 flexsurv，Stata 的 streg，Python 的 lifelines<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> |
| 与 Cox 对比 | 在 2024 年对 32 个数据集上 18 个模型的基准测试中，调优后的 AFT 模型在整体预测性能（右删失对数似然）上显著优于 Cox<sup>[7](https://arxiv.org/html/2406.04098v1)</sup> |

## 工作原理

该模型假定协变量加速或减速时间本身。写成 \( \log T = \eta + W \) 可得 \( T = e^{\eta} \cdot e^{W} = e^{\eta} \cdot T_0 \)，因此协变量部分 \( e^{\eta} \) 重新缩放基线时间变量 T₀：若 \( e^{\eta} = 0.5 \)，受试者老化速度是正常的两倍；若 \( e^{\eta} = 2 \)，则老化速度减半。<sup>[8](https://dylanspicker.com/courses/STAT437/content/041%20+%20044.%20Lecture%20Notes.pdf)</sup> 对数位置-尺度 AFT 模型是生存时间的对数服从位置-尺度分布的特殊情形。<sup>[1](https://ast405.netlify.app/life/ch06.pdf)</sup>

通常的对数线性形式为

\[ \log(T_i) = \beta_0 + \beta_1 z_{i1} + \cdots + \beta_p z_{ip} + \sigma \varepsilon_i, \]

其中 εᵢ 独立同分布，来自已知累积分布函数 \( F_{\varepsilon} \)，\( \sigma \) 为尺度参数。<sup>[9](https://math.unm.edu/~fletcher/ch13.pdf)</sup> 这在结构上是对对数时间的普通线性回归；等价地，半参数形式为 log T̃ = XTβ₀ + ε。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC4317328/)</sup> 赋予 ε 的分布决定了模型名称：极值误差给出 Weibull AFT，正态误差给出对数正态，逻辑斯蒂误差给出对数逻辑斯蒂。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> 在 SAS Proc Lifereg 中，模型以 T 的分布而非 ε 的分布命名，因此 Weibull、指数、伽马、对数逻辑斯蒂和对数正态选择分别对应极值、极值、对数伽马、逻辑斯蒂和正态误差分布；它们对回归系数的解释完全相同。<sup>[4](https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/AFT-tutorial.pdf)</sup>

加速因子平移整个事件时间分布在所有分位数上的位置，由生存函数 S(t|x, z) = S₀(t · exp(−x'β − z'γ)) 描述。<sup>[3](https://arxiv.org/html/2401.04832)</sup> 当系数 βₖ 较小时，可将其读作协变量每增加一个单位时平均或中位生存时间的近似百分比增加（若为正）或减少（若为负）。<sup>[4](https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/AFT-tutorial.pdf)</sup>

## 实施方法

一旦选定基线分布，模型即为完全参数化的，并在独立且无信息删失下通过标准似然理论拟合。<sup>[8](https://dylanspicker.com/courses/STAT437/content/041%20+%20044.%20Lecture%20Notes.pdf)</sup> 对于右删失，观测数据为 yᵢ = min(Tᵢ, Cᵢ)，指示变量 δᵢ = I(Tᵢ ≤ Cᵢ)；删失贡献通过生存函数进入似然。<sup>[9](https://math.unm.edu/~fletcher/ch13.pdf)</sup> 在实践中，R 的 survival 包中的 survreg() 将这些拟合为变换后时间变量（最常见的是对数变换）的位置-尺度模型，flexsurv 包拟合相同的族；Stata 的 streg 通过 time 选项支持 AFT 度量；Python 的 lifelines 提供 WeibullAFTFitter、LogNormalAFTFitter 和 LogLogisticAFTFitter。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup><sup> • </sup><sup>[11](https://stat.ethz.ch/R-manual/R-devel/library/survival/html/survreg.html)</sup> eha 包还处理区间删失和左截断数据。<sup>[5](https://cran.r-project.org/web/packages/eha/vignettes/parametric1.pdf)</sup> 推荐的报告内容包括加速因子及其置信区间、所用分布及选择理由，以及支持该选择的诊断检验（AIC/BIC 比较或拟合图）。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup>

当不假定误差分布时，使用半参数估计。Buckley–James 程序用 E(Tᵢ | Tᵢ ≥ Cᵢ, Yᵢ, Xᵢ) 的估计值替代删失时间，并对插补值做最小二乘拟合，不对误差做分布假定。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC4988529/)</sup><sup> • </sup><sup>[13](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0104817)</sup> 其他方法包括逆删失概率加权合成数据估计量、加权秩估计量和非参数最大剖面似然估计量；在模拟比较中，逆加权方法在重删失（50%）下效率最低，而 Buckley–James 在正态分布误差下效率较高但在均匀误差下效率较低。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC4988529/)</sup><sup> • </sup><sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC4317328/)</sup> R 包 aftgee 用基于秩的方法拟合半参数 AFT 模型。<sup>[14](https://www.sychiou.com/aftgee/articles/aftgee.html)</sup> 对于高维半参数 AFT，Suder 和 Molstad（2022）开发了可扩展算法，软件在 penAFT 包中。<sup>[15](https://doi.org/10.1002/sim.9264)</sup>

## 起源

AFT 模型与 Cox 比例风险回归同期发展。Cox 1972 年在《Journal of the Royal Statistical Society Series B》发表的论文《Regression Models and Life-Tables》考虑了带解释变量的删失失效时间，并将风险取为这些变量的函数，开创了比例风险框架。<sup>[16](https://doi.org/10.1111/j.2517-6161.1972.tb00899.x)</sup> 参数 AFT 模型也称为对数位置-尺度模型。<sup>[6](https://www.ripublication.com/ijss17/ijssv12n2_15.pdf)</sup> 1991 年《Statistics in Medicine》的一篇论文指出，该模型尽管只是将对数生存时间对协变量做回归，却很少被用于删失生存数据，并将其作为 Cox 回归的有用替代方案提出。<sup>[17](https://onlinelibrary.wiley.com/doi/10.1002/sim.4780111409)</sup>

## 变体

命名的参数族仅在假定误差分布上不同：指数（最简单的形式，以零协变量时的 T 为基线）、Weibull、对数正态、对数逻辑斯蒂和伽马。<sup>[18](https://www4.stat.ncsu.edu/~dzhang2/st745/chap5.pdf)</sup><sup> • </sup><sup>[4](https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/AFT-tutorial.pdf)</sup> 这一选择对风险函数很重要：对于对数正态或对数逻辑斯蒂 AFT，根本不存在对应的常数风险比，因此这些模型可以表示 Cox 模型无法表示的非比例风险数据。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> 灵活参数 AFT 扩展通过允许时变加速因子来放宽加速因子恒定的假定，建立在早期处理非比例风险的广义伽马方法之上。<sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC10346080/)</sup> 其他扩展通过局部 Kaplan–Meier 插补、辅助协变量和函数型协变量来处理异方差误差。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC4988529/)</sup><sup> • </sup><sup>[13](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0104817)</sup><sup> • </sup><sup>[20](https://ar5iv.labs.arxiv.org/html/2402.05395)</sup> Norman 等人（2024）的 deepAFT 模型是使用人工神经网络的非线性 AFT 模型，发表于《Statistics in Medicine》。<sup>[21](https://doi.org/10.1002/sim.10152)</sup> 2024 年的一种贝叶斯方法采用组 lasso 收缩先验和自定义 MCMC 方案处理左截断和区间删失，实现在 CRAN 的 R 包 psbcGroup 中，<sup>[3](https://arxiv.org/html/2401.04832)</sup> 而 AFFECT（2024）是一个用于加速函数型失效时间模型的 R 包，处理误差污染的生存时间，应用于基因表达数据。<sup>[22](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-024-05831-5)</sup>

## 应用

在医学事件发生时间分析中，AFT 模型直接量化中位事件时间的缩短或延长，不同于风险比，其作者建议在此类分析中考虑 AFT 建模。<sup>[23](https://onlinelibrary.wiley.com/doi/10.1002/pst.213)</sup> 当比例风险假定不成立时适用：治疗效果随时间减弱或增强、Kaplan–Meier 曲线明显交叉、或 Schoenfeld 残差时间趋势显著。<sup>[2](https://www.casrai.org/guides/accelerated-failure-time-models)</sup> 近期的基因表达和痴呆风险应用展示了其在高维基因组和队列数据中的使用。<sup>[22](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-024-05831-5)</sup><sup> • </sup><sup>[3](https://arxiv.org/html/2401.04832)</sup>

## 局限性与替代方案

主要局限是参数 AFT 需要指定事件时间分布，这在许多实际情境中很困难，不同于 Cox 模型；参数模型还对生存时间分布的误设和离群值敏感，这正是半参数文献的动机所在。<sup>[24](https://journals.sagepub.com/doi/full/10.1177/09622802211041759)</sup><sup> • </sup><sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC4317328/)</sup> 相比之下，AFT 避免了基于比例风险的风险比所具有的非可折叠性和由此产生的内置选择偏倚，这是关键的可解释性优势，且当其分布假定成立时在统计效率上高于 Cox。<sup>[24](https://journals.sagepub.com/doi/full/10.1177/09622802211041759)</sup><sup> • </sup><sup>[25](https://export.arxiv.org/pdf/math/0305234v1.pdf)</sup> 在 2024 年对 32 个低维右删失数据集上 18 个生存模型的基准测试中，没有方法在区分度上显著优于 Cox 模型，但调优后的 AFT 模型在右删失对数似然测得的整体预测性能上显著更好，而 Cox PH 和 AFT 等经典方法在总体上显著优于复杂的机器学习算法。<sup>[7](https://arxiv.org/html/2406.04098v1)</sup>

## References

1. [Chapter 6 - (AST405) Lifetime data analysis](https://ast405.netlify.app/life/ch06.pdf)
2. [Accelerated Failure Time Models: The Time-Ratio Alternative to Cox](https://www.casrai.org/guides/accelerated-failure-time-models)
3. [Group lasso priors for Bayesian accelerated failure time models with left-truncated and interval-censored data](https://arxiv.org/html/2401.04832)
4. [Modeling Survival Data with Parametric Regression (AFT tutorial)](https://med.stanford.edu/content/dam/sm/dbds/documents/biostats-workshop/AFT-tutorial.pdf)
5. [Parametric proportional hazards and accelerated failure time models (eha package vignette)](https://cran.r-project.org/web/packages/eha/vignettes/parametric1.pdf)
6. [A Review on Accelerated Failure Time Models](https://www.ripublication.com/ijss17/ijssv12n2_15.pdf)
7. [A Large-Scale Neutral Comparison Study of Survival Models on Low-Dimensional Data](https://arxiv.org/html/2406.04098v1)
8. [STAT 437 lecture notes on AFT models](https://dylanspicker.com/courses/STAT437/content/041%20+%20044.%20Lecture%20Notes.pdf)
9. [Time to Event Regression (chapter notes)](https://math.unm.edu/~fletcher/ch13.pdf)
10. [Score Estimating Equations from Embedded Likelihood Functions under Accelerated Failure Time Model](https://pmc.ncbi.nlm.nih.gov/articles/PMC4317328/)
11. [survreg: Regression for a Parametric Survival Model (R survival package documentation)](https://stat.ethz.ch/R-manual/R-devel/library/survival/html/survreg.html)
12. [Local Buckley-James estimation for heteroscedastic accelerated failure time model](https://pmc.ncbi.nlm.nih.gov/articles/PMC4988529/)
13. [Buckley-James Estimator of AFT Models with Auxiliary Covariates (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0104817)
14. [Least-Squares Estimators for Accelerated Failure Time Model • aftgee (software documentation)](https://www.sychiou.com/aftgee/articles/aftgee.html)
15. [Piotr M. Suder, Aaron J. Molstad (2022). Scalable algorithms for semiparametric accelerated failure time models in high dimensions. Statistics in Medicine.](https://doi.org/10.1002/sim.9264)
16. [D. R. Cox (1972). Regression Models and Life-Tables. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1972.tb00899.x)
17. [The accelerated failure time model: A useful alternative to the cox regression model in survival analysis](https://onlinelibrary.wiley.com/doi/10.1002/sim.4780111409)
18. [ST 745 Chapter 5 notes (NC State)](https://www4.stat.ncsu.edu/~dzhang2/st745/chap5.pdf)
19. [A flexible parametric accelerated failure time model and the extension to time-dependent acceleration factors](https://pmc.ncbi.nlm.nih.gov/articles/PMC10346080/)
20. [Functional accelerated failure time (FAFT) model (arXiv 2402.05395)](https://ar5iv.labs.arxiv.org/html/2402.05395)
21. [Patrick A. Norman and colleagues (2024). deepAFT: A nonlinear accelerated failure time model with artificial neural network. Statistics in Medicine.](https://doi.org/10.1002/sim.10152)
22. [AFFECT: an R package for accelerated functional failure time model with error-contaminated survival times and applications to gene expression data](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-024-05831-5)
23. [Comparing proportional hazards and accelerated failure time models: an application in influenza](https://onlinelibrary.wiley.com/doi/10.1002/pst.213)
24. [Flexible extension of the accelerated failure time model to account for nonlinear and time-dependent effects of covariates on the hazard](https://journals.sagepub.com/doi/full/10.1177/09622802211041759)
25. [arXiv math/0305234 (survival analysis comparison notes)](https://export.arxiv.org/pdf/math/0305234v1.pdf)
26. [Weibull (cran.r-project.org)](https://cran.r-project.org/web/packages/SurvRegCensCov/vignettes/weibull.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Sep 30, 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/accelerated-failure-time-model

English original: https://www.edgepedia.org/accelerated-failure-time-model
