confint
Confidence intervals for fit coefficients ofcfit
orsfit
object
Description
returns 95% confidence boundsci
= confint(fitresult
)ci
on the coefficients associated with thecfit
orsfit
objectfitresult
。fitresult
must be an output from thefit
function to contain the necessary information forci
。ci
is a 2-by-n
array wheren = numcoeffs(fitresult)
。第一行的ci
contains the lower bound for each coefficient; the bottom row contains the upper bound.
Examples
Input Arguments
Output Arguments
Tips
To calculate confidence bounds,confint
usesR-1(the inverseRfactor fromQRdecomposition of the Jacobian), the degrees of freedom for error, and the root mean squared error. This information is automatically returned by thefit
function and contained withinfitresult
。
If coefficients are bounded and one or more of the estimates are at their bounds, those estimates are regarded as fixed and do not have confidence bounds.
Note that you cannot calculate confidence bounds ifcategory(fitresult)
is'spline'
or'interpolant'
。