survreg
survreg is a function in the survival package for R that fits parametric survival regression models using the accelerated failure time (AFT) framework. It analyzes time-to-event data typically stored in a Surv object and supports right-, left-, and interval-censored observations, as well as left truncation.
The core idea of survreg is to model the logarithm of survival time as a linear predictor:
Estimation is performed by maximum likelihood, allowing complex censoring and censoring-related features. The resulting object contains
The function supports model features common to R’s modeling tools, such as stratification via strata in the
Example usage: fit <- survreg(Surv(time, status) ~ age + sex, dist = "lognormal"); summary(fit).