cox_regression
Fit Cox proportional hazards regression models to estimate covariate effects on time-to-event data using formula-based input and duration/event columns.
Instructions
Fit a Cox proportional hazards regression with statsmodels PHReg.
``formula`` contains only the covariate terms (for example ``"x1 + x2"``).
``data`` is a ``{column: list}`` mapping or an ``"@<path>.csv"`` reference.
Event indicators must be 0/1 and durations must be positive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| formula | Yes | ||
| event_col | Yes | ||
| duration_col | Yes |