sksurv.nonparametric.
nelson_aalen_estimator
Nelson-Aalen estimator of cumulative hazard function.
See 1, 2 for further description.
event (array-like, shape = (n_samples,)) – Contains binary event indicators.
time (array-like, shape = (n_samples,)) – Contains event/censoring times.
time (array, shape = (n_times,)) – Unique times.
cum_hazard (array, shape = (n_times,)) – Cumulative hazard at each unique time point.
References
Nelson, W., “Theory and applications of hazard plotting for censored failure data”, Technometrics, vol. 14, pp. 945-965, 1972.
Aalen, O. O., “Nonparametric inference for a family of counting processes”, Annals of Statistics, vol. 6, pp. 701–726, 1978.