Modelcore
Accelerated failure time model
Also called AFT model.
Models log T as a linear function of covariates plus an error, so covariates stretch or shrink time. The Weibull model is both AFT and proportional hazards.
An accelerated failure time (AFT) model says that covariates change the speed at which time passes for a subject. If is the event time of a subject with , a subject with covariates has the event time : everything that happens to the baseline subject at time happens to this subject at time . On the log scale this is a linear regression with a censored response,
where is an error with a fixed distribution. The coefficients are log time ratios: multiplies every quantile of , including the median. This page states the model, proves the equivalent forms, and proves when an AFT model is also a proportional hazards model. The usual claim that "the Weibull is the only model that is both" needs a condition, and the page gives a counterexample for a single binary covariate.
The machine
The data. For subjects we observe , and , as on the censoring page.
The conditions.
- Log-linear form. , with and independent with a common distribution, independent of . In a parametric AFT model the law of is fixed, with survival function and density . In the semiparametric model it is unknown.
- Independent censoring. Given , censoring does not change the hazard of the event among the subjects at risk.
- Independent subjects.
Common choices of .
| law of | law of | hazard shape | |
|---|---|---|---|
| minimum extreme value | Weibull (exponential if ) | monotone | |
| logistic | log-logistic | rises and falls if | |
| standard normal | lognormal | rises and falls |
Equivalent forms. Write , and let , and be the survival function, hazard and cumulative hazard of . Then
where is the -quantile of given . Proof. , so . Then , and differentiating in gives the hazard. Finally .
So the hazard of an AFT model at time is the baseline hazard read at the rescaled time , times the rate factor . The hazards are not proportional in general.
The likelihood. With , the log-likelihood is
the censored-data likelihood of the censoring page written on the log scale. The term is the Jacobian of . It does not depend on the parameters, but it must be kept to compare the log-likelihoods of an AFT model and a model fitted on the time scale. For the three laws above, is concave in for fixed , because and are concave, and Newton's method in converges quickly from a least squares start.
What it counts
- The time ratio. is the factor by which a one-unit increase in multiplies the median, every other quantile and, when it exists, the mean of . A time ratio of 2 means the event takes twice as long. This is often easier to explain than a hazard ratio.
- The scale . It sets the spread of and the shape of the hazard. For the Weibull model the shape parameter is : the hazard increases if and decreases if .
- Prediction. The model gives the whole distribution of for each , including the tail beyond the follow-up, which a semiparametric model cannot give. That extrapolation rests only on the chosen law of .
- Without censoring, the model is the linear regression of on , and for normal the maximum likelihood estimate of is ordinary least squares.
Relation to other models
- Proportional hazards. The Weibull AFT model is a proportional hazards model. Proof. With , , so . So the hazard ratio coefficient is . A longer time (positive ) means a lower hazard. The converse needs care; see the next section.
- Proportional odds. The log-logistic AFT model is a proportional odds model: the odds of having had the event, , are , so covariates multiply the odds by at every time. Its hazard ratio between two covariate values starts at near and tends to as .
- The Cox model. The Cox model fixes the form of the hazard ratio and leaves the baseline free. The semiparametric AFT model fixes the time ratio and leaves the law of free. Both are semiparametric, but the AFT estimating equations are not smooth, which makes them harder to compute.
- Frailty. If a proportional hazards model holds given an unobserved factor, the marginal hazard ratio is not constant. In a frailty model with a gamma factor of variance and a Weibull baseline , the marginal survival is , which is a log-logistic AFT model with . So data from a frailty model can look exactly like data from an AFT model.
- Censored regression. With normal and censoring at fixed known points the model is the Tobit model of econometrics, on the log scale.
Known results in the model
When is an AFT model also proportional hazards? Let , with continuous and strictly increasing from to on . For a time ratio the AFT survival function is , and it is a proportional hazards model with the factor when
Theorem. If holds for every , or for two values with irrational, then for some : the baseline is Weibull.
Proof. Put and , which is continuous. With and , says for all . Let . Then , so is continuous and periodic, hence bounded. Also with , so for every integer . Since is bounded, , and has the periods and . Their ratio is irrational, so the set of periods is dense in , and a continuous function with a dense set of periods is constant. So , which is with and ; because increases. If holds for every , pick two values with an irrational log ratio.
A counterexample with one binary covariate. Fix , a small and , and let
Its derivative is , which is positive for small , so is a cumulative hazard from to . Because leaves the sine unchanged, . So with a binary , the two-group model with time ratio is also a proportional hazards model with hazard ratio , but is not Weibull. The "only Weibull" statement is therefore a statement about covariates that take enough values, not about the two-sample case.
Parametric fits. For the leukemia data of the Kaplan-Meier page (21 patients on 6-MP, 21 on placebo, 30 events), with for placebo, maximum likelihood gives:
| law | (standard error) | time ratio, 6-MP over placebo | log-likelihood | |
|---|---|---|---|---|
| Weibull | -1.2673 (0.3106) | 0.7322 | 3.55 | -106.580 |
| log-logistic | -1.2655 (0.3257) | 0.5466 | 3.55 | -107.661 |
| lognormal | -1.3468 (0.3165) | 0.9239 | 3.85 | -106.705 |
The log-likelihoods include the term. The three laws agree that 6-MP stretches the time to relapse by a factor of about 3.5 to 3.9. The Weibull fit has and the shape , an increasing hazard. Its medians are 25.7 weeks for 6-MP and 7.2 weeks for placebo, against the Kaplan-Meier medians of 23 and 8. As a proportional hazards model it gives for placebo, a hazard ratio of 5.65, against 4.52 to 5.09 for the Cox fits with the three rules for ties on the Cox page. The log-logistic fit has a hazard ratio that starts near 10.1 at and falls toward 1. These numbers were computed with Newton's method on numerical derivatives in a short script, and they are measured, not proved. There is no reference code for this page.
Semiparametric estimation. When the law of is left free, there is no likelihood to maximize, and three approaches are used.
- Buckley-James (1979). Replace each censored by its conditional expectation given , computed from the Kaplan-Meier estimate of the residuals, and refit by least squares. Iterate. The iteration may cycle between two values instead of converging.
- Rank estimating equations (Tsiatis 1990). At the true , the residuals are a censored sample with the same law for every , so a weighted log-rank statistic of on the residuals has mean zero. Solve , where is the mean of over the subjects with residual at least , and gives the log-rank weight. is a step function of , so "solve" means find a sign change or minimize . The estimate is consistent and asymptotically normal under regularity conditions. This is cited, not proved here.
- Gehan weights (Jin, Lin, Wei and Ying 2003). With the Gehan weight the estimating function is the gradient of the convex function , so the estimate is the minimizer of a convex piecewise linear function, a linear program. Its variance is estimated by resampling.
The choice of law. The parametric fits rest on the law of . The log-likelihoods of the table can be compared, since the three models have the same number of parameters, and here the Weibull fits best by a small margin. Compare the fitted curves with the Kaplan-Meier curves of each group before trusting a prediction beyond the follow-up.
References
- John D. Kalbfleisch and Ross L. Prentice, The Statistical Analysis of Failure Time Data, 2nd edition, Wiley, 2002, Chapters 2 and 3 (failure time models, including the accelerated failure time and proportional hazards classes, and inference for parametric regression models)
- John P. Klein and Melvin L. Moeschberger, Survival Analysis, Techniques for Censored and Truncated Data, 2nd edition, Springer, 2003, Chapter 12 (inference for parametric regression models, with the Weibull, log-logistic and lognormal accelerated failure time models)
- Jonathan Buckley and Ian James, Linear regression with censored data, Biometrika 66(3), 1979, pp. 429 to 436 (the iterative estimate that replaces each censored log time by its conditional expectation under the Kaplan-Meier estimate of the residuals)
- Anastasios A. Tsiatis, Estimating regression parameters using linear rank tests for censored data, Annals of Statistics 18(1), 1990, pp. 354 to 372 (rank estimating equations for the semiparametric model and their asymptotic normality)
- Zhezhen Jin, D. Y. Lin, L. J. Wei and Zhiliang Ying, Rank-based inference for the accelerated failure time model, Biometrika 90(2), 2003, pp. 341 to 353 (the Gehan-weighted estimating function as a convex objective solved by linear programming, and variance estimation by resampling)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag MRHNZ0 Edit this page History Report an error Markdown