segreg.model.OLSRegressionEstimator.model_function¶
- property OLSRegressionEstimator.model_function¶
Returns the regression model function defined by the estimated parameters.
That is, if the model is of the form:
\[y = f(x; \theta) + \varepsilon\]where \(f(x)\) is a function of x depending on the parameter vector \(\theta\), then this returns the function
\[f(x; \widehat{\theta})\]where \(\widehat{\theta}\) is the estimated parameter vector from fitting the model to data.
See also
- Raises
Exception – If
fit
has not been called.- Returns
model_function
- Return type
function object