3.6.11.2.1.1.9. statsmodels.graphics.regressionplots.OLS.predict

OLS.predict(params, exog=None)

Return linear predicted values from a design matrix.

Parameters:

params : array-like

Parameters of a linear model

exog : array-like, optional.

Design / exogenous data. Model exog is used if None.

Returns:

An array of fitted values

Notes

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