MATLAB: How to get the CV% and Confidence interval for the parameter estimates from output of lsqnonlin function

confidence intervalcvlsqnonlin

Hi Everyone,
I want to calculate CV% and Confidence interval for my parameter estimates which I have estimated using lsqnonlin function.
[x,resnorm,residual,exitflag,OUTPUT,LAMBDA,Jacobian] =lsqnonlin(@compart_error , p0, [],[],optim_options,ob_conc3,ob_tPoints);
Here x is my parameter estimate with other outputs.
Any help will be greatly appreciated.
Thanks!

Best Answer

If you also have the Statistics Toolbox, use the nlparci function.