confint
Confidence intervals for fit coefficients of cfit
or sfit
object
Description
returns 95% confidence bounds ci
= confint(fitresult
)ci
on the coefficients associated with the cfit
or sfit
object fitresult
. fitresult
must be an output from the fit
function to contain the necessary information for ci
. ci
is a 2-by-n
array where n = numcoeffs(fitresult)
. The top row of 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
uses R-1 (the inverse R factor from QR decomposition of the Jacobian), the degrees of freedom for error, and the root mean squared error. This information is automatically returned by the fit
function and contained within fitresult
.
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 if category(fitresult)
is 'spline'
or 'interpolant'
.
Version History
Introduced before R2006a