sksurv.nonparametric.
ipc_weights
Compute inverse probability of censoring weights
event (array, shape = (n_samples,)) – Boolean event indicator.
time (array, shape = (n_samples,)) – Time when a subject experienced an event or was censored.
weights – inverse probability of censoring weights
array, shape = (n_samples,)
See also
CensoringDistributionEstimator()
An estimator interface for estimating inverse probability of censoring weights for unseen time points.