scikits.statsmodels.model.Model

class scikits.statsmodels.model.Model(endog, exog=None)

A (predictive) statistical model. The class Model itself is not to be used.

Model lays out the methods expected of any subclass.

Parameters:

endog : array-like

Endogenous response variable.

exog : array-like

Exogenous design.

Notes

endog and exog are references to any data provided. So if the data is already stored in numpy arrays and it is changed then endog and exog will change as well.

Methods

fit() Fit a model to data.
predict(design) After a model has been fit predict returns the fitted values.

Previous topic

scikits.statsmodels.model.LikelihoodModelResults.t_test

Next topic

scikits.statsmodels.model.Model.fit

This Page