According to the docs, I can find the standard error of the regression by using the scale() class method on a RegressionResults instance.
However, I cannot obtain a RegressionResults instance.
This is what I did:
y = foo; X = bar
model = sm.OLS(y, X)
results = model.fit()
Looking into object type...
print type(results)
...returns a RegressionResultsWrapper
<class 'statsmodels.regression.linear_model.RegressionResultsWrapper'>
This "RegressionResultsWrapper" is undocumented, and I cannot find a way to manipulate it. results.scale() fails, and I cannot obtain the information I want.
Further, the docs state that .fit() is supposed to return a RegressionResults class instance, but what is returned is the RegressionResultsWrapper as seen above.
Any idea how I can obtain the information on the "standard error of the regression" for this regression model?