SemiParametricProportionalHazard#

class relife.lifetime_models.SemiParametricProportionalHazard[source]#

Class for Cox, semi-parametric, Proportional Hazards, model

Methods

fit

get_params

init_likelihood

sf

The survival function estimations.

sf(covar, se=True)[source]#

The survival function estimations.

Parameters:
covar: np.array

array with covariates values

sebool, default True

If True, the standard errors are returned in addition to timeline and sf values.

Returns:
outtuple of timeline, values, optionally se. Default is None

A timeline, corresponding sf values and optionnaly the standard errors. If the estimations does not exist yet, returns None.