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 : array, shape = (n_samples,)

inverse probability of censoring weights