Skip to content

Model fitting

Kevin J. Black edited this page May 11, 2016 · 2 revisions

This feature is implemented using statsmodels and patsy which are optional requirements.

The model fitting dialog is kept simple and currently only implements a subset of statsmodels functionality. Thus it is suitable for teaching beginners. Clicking the model fitting button on the toolbar creates the dialog below the table. The most important part is the entry bar for the formula. Estimators can be selected from the drop down menu. Formulas are of the following form:

b ~ a + c

where b represents the dependent variable (the one you want to fit to and predict new values for) and a and c are the independent variables (or features). The ~ sign is an = sign, indicating the sides of the equation. For a more detailed explanation on patsy formulas see here.

See http://dmnfarrell.github.io/dataexplore/2015/09/02/fitting for a more detailed overview.