MATLAB: How to find the erro for fitted parameters

errorfittingMATLAB

When using 'lsqnonlin', 'lsqcurvefit', 'fitnlm', 'nlinfit', etc.. It produces optimized parameters. How to find the error of these parameters to report results like a+/- da; b +/- db ( da and db here)? Thanks.

Best Answer

To get parameter confidence limits on a nonlinear regression, use the nlparci (link) function.
To get confidence intervals on the fit (prediction), use the nlpredci (link) function.
Related Question