Python script constructing regression design matrices from model formulas with patsy and statsmodels. Reusable statistical-modelling example.
python numpy regression pandas data-analysis statsmodels linear-models statistical-modeling design-matrix patsy model-formula
-
Updated
Sep 13, 2026 - Jupyter Notebook