statsmodels.duration.hazard_regression.PHReg.fit

method

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 a PHregResults instance.