ECDF#

final class relife.lifetime_model.ECDF[source]#

Empirical Cumulative Distribution Function.

Methods

cdf

The cumulative distribution function estimated values

fit

Compute the non-parametric estimations with respect to lifetime data.

sf

The survival functions estimated values

cdf(se=True)[source]#

The cumulative distribution function estimated values

Parameters:
sebool, default is False

If true, the estimated standard errors are returned too.

Returns:
tuple of 2 or 3 ndarrays

A tuple containing the timeline, the estimated values and optionally the estimated standard errors (if se is set to true)

fit(time)[source]#

Compute the non-parametric estimations with respect to lifetime data.

Parameters:
timendarray

Observed lifetime values.

sf(se=True)[source]#

The survival functions estimated values

Parameters:
sebool, default is False

If true, the estimated standard errors are returned too.

Returns:
tuple of 2 or 3 ndarrays

A tuple containing the timeline, the estimated values and optionally the estimated standard errors (if se is set to true)