statsmodels.duration.hazard_regression.PHReg.fit

PHReg.fit(groups=None, **args)[source]

Fit a proportional hazards regression model.

Parameters:
groupsarray_like

Labels indicating groups of observations that may be dependent. If present, the standard errors account for this dependence. Does not affect fitted values.

Returns:
PHRegResults

Returns a results instance.