95% confidence intervalsof regression line!

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

Accepted Answer

Star Strider
Star Strider on 1 Nov 2017
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.
  4 Comments
Panos Ale
Panos Ale on 20 Dec 2017
Edited: Panos Ale on 20 Dec 2017
Clear and helpful as always!Thank you very much!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!