Logo

scikits.statsmodels.genmod.generalized_linear_model.GLM.predict

GLM.predict(exog, params=None, linear=False)[source]

Return predicted values for a design matrix

Parameters :

exog : array-like

Design / exogenous data

params : array-like, optional after fit has been called

Parameters / coefficients of a GLM.

linear : bool

If True, returns the linear predicted values. If False, returns the value of the inverse of the model’s link function at the linear predicted values.

Returns :

An array of fitted values :

Notes

If the model as not yet been fit, params is not optional.

Previous topic

sm.genmod.generalized_linear_model.GLM.loglike

Next topic

sm.genmod.generalized_linear_model.GLM.score

This Page