sksurv.nonparametric.nelson_aalen_estimator¶
-
sksurv.nonparametric.
nelson_aalen_estimator
(event, time)[source]¶ Nelson-Aalen estimator of cumulative hazard function.
See 1, 2 for further description.
- Parameters
event (array-like, shape = (n_samples,)) – Contains binary event indicators.
time (array-like, shape = (n_samples,)) – Contains event/censoring times.
- Returns
time (array, shape = (n_times,)) – Unique times.
cum_hazard (array, shape = (n_times,)) – Cumulative hazard at each unique time point.
References