I follow statsmodels instructions
OLS model equipped
formula = ~ C(E) + C(M) + X' lm = ols(formula, salary_table).fit() print lm.summary()
Predicted values ββare provided through:
lm.predict({'X' : [12], 'M' : [1], 'E' : [2]})
The result is returned as a single array of values.
Is there a way to return confidence intervals for the predicted value (prediction intervals) in statsmodels?
Thanks.
source share