fit

OlsModel.fit(model)[source]

Fits an OLS model

Parameters

modelnp.array(1d)

The current model terms.

Returns

fitModelResults

An object of type model results containing the optimization metric and the estimated coefficients.