sksurv.nonparametric.
CensoringDistributionEstimator
Kaplan–Meier estimator for the censoring distribution.
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__()
Initialize self.
fit(y)
fit
Estimate censoring distribution from training data.
predict_ipcw(y)
predict_ipcw
Return inverse probability of censoring weights at given time points.
predict_proba(time)
predict_proba
Return probability of an event after given time point.
y (structured array, shape = (n_samples,)) – A structured array containing the binary event indicator as first field, and time of event or time of censoring as second field.
self
\(\omega_i = \delta_i / \hat{G}(y_i)\)
ipcw – Inverse probability of censoring weights.
array, shape = (n_samples,)
\(\hat{S}(t) = P(T > t)\)
time (array, shape = (n_samples,)) – Time to estimate probability at.
prob – Probability of an event.