A new piecewise exponential estimator of a survival function