statsmodels.duration.hazard_regression.PHReg.from_formula
classmethod PHReg.from_formula(formula, data, status=None, entry=None, strata=None, offset=None, subset=None, ties='breslow', missing='drop', *args, **kwargs) [source]
Create a proportional hazards regression model from a formula and dataframe. Parameters:
formula : str or generic Formula object The formula specifying the model data : array-like The data for the model. See Notes. status : array-like The censoring status values;