获取参数估计的置信区间

Getting confidence interval of parameter estimate

在拟合回归线时使用cftool,默认情况下它显示参数估计的 95% 置信区间为

Linear model Poly1:
     f(x) = p1*x + p2

Coefficients (with 95% confidence bounds):
   p1 =         ...  (..., ...)
   p2 =         ...  (..., ...)

有没有办法使用这个曲线拟合工具箱得到 99% 的置信区间?

使用cfitobject的confint方法:

ci = confint(fitresult, 0.99)

您可能想查看标题为“Fit Postprocessing”的文档文章。