statable Statistics for study and research

AFT model: by which factor does the time to the event change? (time ratio)

In brief

The AFT model (accelerated failure time) says by which factor the time to the event changes: "twice as long" instead of "half the risk". It is in the card "How long does it take until an event?" under "More options", next to the Cox regression, with the same columns. The time ratio is exp(b) with a Wald interval; the output also shows the scale σ, the log-likelihood and the AIC of all four distributions (Weibull, exponential, log-normal, log-logistic). The default is Weibull.

Trap 1: the sign

A positive b in the AFT model means a longer time (time ratio above 1), in the Cox regression a higher risk (hazard ratio above 1). In the example lung (227 complete cases, 164 events) women have b = +0.401 in the AFT model and the time ratio 1.49 (95% interval [1.17, 1.90], p = .001): the survival time is about 1.5 times as long. In the Cox regression the same women have b = −0.553 and the hazard ratio 0.575. Same statement, opposite sign.

More traps

Weibull and hazard ratio

Only the Weibull model is also a proportional hazards model. There HR = exp(−b/σ); Statable shows it in a table. For lung: age 1.010, woman 0.578, ECOG 1.591 (Cox: 1.011, 0.575, 1.590). The interval of the hazard ratio treats σ as fixed and is therefore an approximation. The exponential model is the Weibull model with σ = 1.

Reporting the result

AFT model (Weibull): TR = 1.49, 95% CI [1.17, 1.90], p = .001 (sex); σ = 0.73; AIC = 2274.9; 227 people, 164 events

For specialists

survival::survreg with dist = "weibull", "exponential", "lognormal" or "loglogistic"; time ratio exp(b), Wald interval with qnorm(.975); AIC = −2·logLik + 2·(number of coefficients + scale).

library(survival)
m <- survreg(Surv(time, status == 2) ~ age + sex + ph.ecog, data = lung, dist = "weibull")
summary(m)   # exp(Koeffizient) = Zeitverhältnis
AIC(m)

Related

Open in Statable