sksurv.nonparametric.ipc_weights

sksurv.nonparametric.ipc_weights(event, time)

Compute inverse probability of censoring weights

Parameters:
  • event (array, shape = (n_samples,)) – Boolean event indicator.
  • time (array, shape = (n_samples,)) – Time when a subject experienced an event or was censored.
Returns:

weights – inverse probability of censoring weights

Return type:

array, shape = (n_samples,)