MATLAB: 95% confidence intervalsof regression line!

95% ci regression regress confidence intervals

Hi! How can I calculate the 95% confidence intervals(numerically) of a regression line after using the the command regress?

Best Answer

I like regress, even with its limitations. However, it would probably be best for you to re-run your regression with the fitlm (link) function, then use the predict (link) function to calculate the confidence intervals. The ‘Xnew’ in the documentation are your existing independent variable values.