MATLAB: Test for signficant slopes

polyfitpolyparcislope regression test

I have calculated a regression for an time vs. y relationship where n=193. I now need to assess if the trend observed is significant. Is there a function for that? thanks! MW

Best Answer

It depends on your regression model and function you used. There are various Statistics Toolbox functions that will produce confidence intervals on the parameters, one of which is the slope. You will need to see the documentation for the function you used to determine what you need to do to get the slope information.
If you used polyfit, then my File Exchange function polyparci can calculate the confidence intervals on the parameters.