Logo

statsmodels.base.model.Model

class statsmodels.base.model.Model(endog, exog=None)[source]

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(params[, exog]) After a model has been fit predict returns the fitted values.

Attributes

endog_names
exog_names

Previous topic

statsmodels.base.model.GenericLikelihoodModelResults.tvalues

Next topic

statsmodels.base.model.Model.fit

This Page