SemiParametricProportionalHazard#
- class relife.lifetime_models.SemiParametricProportionalHazard(time, covar, event=None, entry=None, **kwargs)[source]#
Cox semi-parametric proportional hazard.
Methods
get_paramsinit_likelihoodThe 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.