KaplanMeier-Algorithm
The Kaplan-Meier estimate of the survival probabilities is a step function, let , i = 1, 2, 3, ..., n. denotes the ordered distinct time for the observed event occurred, the survivorship function can be calculate by:
,
wheres is the sample number at time and is the number of observed events and censored observations at time .