Survival analysis¶
In the app: Help → Help contents, Survival analysis.
Durations, such as time to finding a job, to default or to relapse, are often censored: for some subjects the event has not happened when observation ends. The Kaplan-Meier estimator gives the probability of surviving past each time as a product over the event times of the share of those at risk who survive it; censored subjects count as at risk until they leave. Its intervals are pointwise (log-log by default, as Stata; log as R's survfit), from Greenwood's variance. The log-rank test compares the events seen in each group with those expected if survival were the same in every group; the Wilcoxon (Gehan-Breslow) and Tarone-Ware versions give early events more weight.
Cox's proportional hazards model leaves the baseline hazard unspecified and estimates how regressors shift it: exp(coefficient) is the hazard ratio, the same at every time. The partial likelihood needs a rule for events at the same time: Breslow's (the default here, as in Stata and statsmodels) or Efron's (R's default, closer to the exact likelihood with many ties). Strata give each stratum its own baseline hazard; an entry time handles subjects observed only after some time at risk (left truncation: at risk after the entry time, up to and including the end, as R's coxph and Stata's stcox); robust standard errors are Lin and Wei's, from those risk sets. The proportional-hazards assumption is checked by Grambsch and Therneau's test: the scaled Schoenfeld residuals should not trend with time. Covariates that change over time are given in counting-process form: a row for each spell over which a subject's covariates are constant, from its start (the entry time) to its end, with the subject named; each spell is at risk after its start, up to and including its end. After the fit, survival curves at chosen regressor values come from Breslow's baseline hazard, S(t | x) = exp(-H0(t) exp(x'beta)), with pointwise intervals from the delta method over the coefficients and the baseline hazard (Tsiatis' variance).
Next to the Kaplan-Meier curve, the Nelson-Aalen estimate of the cumulative hazard adds up the share of those at risk who fail at each event time; its standard error is Aalen's and its interval is on the log scale. A parametric duration model gives the duration a distribution: exponential (a constant hazard), Weibull (a hazard rising or falling steadily with time), log-normal or log-logistic (hazards that can rise and then fall). In the accelerated failure time form, log T = x'beta + sigma e, and exp(coefficient) stretches or shrinks the time to the event; the Weibull and the exponential are also proportional-hazards models, whose exp(coefficient) is a hazard ratio. They are fitted by maximum likelihood, censored subjects adding the probability of surviving past censoring and late entrants conditioned on surviving to entry, and give median and mean durations and hazards at any regressor values; AIC compares the distributions.
With competing risks, a subject can leave for one of several reasons and the others can then no longer happen. One minus a Kaplan-Meier curve that treats the other causes as censoring then overstates a cause's probability; the Aalen-Johansen cumulative incidence function gives the probability of failing from each cause by each time, and the causes' incidences and the survival from every cause add to one. Its standard errors are the delta-method (Greenwood-type) ones of Marubini and Valsecchi.
See also¶
References¶
- Kaplan, E. L. and Meier, P. (1958). Nonparametric estimation from incomplete observations. Journal of the American Statistical Association 53(282), 457-481. (search)
- Mantel, N. (1966). Evaluation of survival data and two new rank order statistics arising in its consideration. Cancer Chemotherapy Reports 50(3), 163-170. (search)
- Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society, Series B (Methodological) 34(2), 187-220. (search)
- Breslow, N. (1974). Covariance analysis of censored survival data. Biometrics 30(1), 89-99. (search)
- Efron, B. (1977). The efficiency of Cox's likelihood function for censored data. Journal of the American Statistical Association 72(359), 557-565. (search)
- Lin, D. Y. and Wei, L. J. (1989). The robust inference for the Cox proportional hazards model. Journal of the American Statistical Association 84(408), 1074-1078. (search)
- Grambsch, P. M. and Therneau, T. M. (1994). Proportional hazards tests and diagnostics based on weighted residuals. Biometrika 81(3), 515-526. (search)
- Tsiatis, A. A. (1981). A large sample study of Cox's regression model. The Annals of Statistics 9(1), 93-108. (search)
- Kalbfleisch, J. D. and Prentice, R. L. (2002). The Statistical Analysis of Failure Time Data, 2nd ed. Wiley. (search)
- Aalen, O. O. and Johansen, S. (1978). An empirical transition matrix for non-homogeneous Markov chains based on censored observations. Scandinavian Journal of Statistics 5(3), 141-150. (search)
- Marubini, E. and Valsecchi, M. G. (1995). Analysing Survival Data from Clinical Trials and Observational Studies. Wiley. (search)
- Andersen, P. K. and Gill, R. D. (1982). Cox's regression model for counting processes: a large sample study. The Annals of Statistics 10(4), 1100-1120. (search)