ECDF#

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=False)[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, /, event=None, entry=None, departure=None)[source]#

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

Parameters:
timendarray (1d or 2d)

Observed lifetime values.

eventndarray of boolean values (1d), default is None

Boolean indicators tagging lifetime values as right censored or complete.

entryndarray of float (1d), default is None

Left truncations applied to lifetime values.

departurendarray of float (1d), default is None

Right truncations applied to lifetime values.

sf(se=False)[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)