The statsmodels pack checks regression, formula, and time-series migration code against statsmodels 0.15.0 on files that import statsmodels. Rules rely on import and local assignment bindings.
| Rules |
Safe fix |
Unsafe fix |
Manual fix |
| 7 |
1 |
3 |
3 |
| Rule |
Severity |
Fix |
What it finds |
| ols-ignored-weights |
error |
none |
Statsmodels OLS warns and ignores weights. |
| statsmodels-formula-power-term |
warning |
unsafe |
In a statsmodels OLS formula, Patsy and Formulaic use ** to expand interactions. |
| glm-logged-exposure |
warning |
none |
A statsmodels GLM with a log link takes the natural log of exposure before adding it to the linear predictor. |
| compare-f-test-robust-covariance |
warning |
none |
Statsmodels compare_f_test compares residual sums of squares. |
| rolling-fit-params-only |
info |
unsafe |
A statsmodels rolling regression can compute coefficients without the statistics needed for inference. |
| Rule |
Severity |
Fix |
What it finds |
| removed-tsa-arguments |
error |
unsafe |
Statsmodels 0.15 removed old_names from AutoReg and ar_select_order and verbose from grangercausalitytests. |
| deprecated-var-seed |
warning |
safe |
Statsmodels 0.15 renamed seed to rng on the VAR result methods simulate_var and irf_errband_mc. |