nlparci
Nonlinear regression parameter confidence intervals
Syntax
Description
returns the 95% confidence intervals ci
= nlparci(beta
,r
,"Covar",CovB
)ci
for the nonlinear least-squares
parameter estimates beta
. Before calling nlparci
, get
the estimated coefficients beta
, residuals r
, and
estimated covariance matrix CovB
by using the nlinfit
function to fit a nonlinear regression model.
If you use a robust option with nlinfit
, you must use this syntax for
nlparci
. The covariance matrix CovB
is required
with robust fitting.
Examples
Input Arguments
Output Arguments
Algorithms
nlparci
treatsNaN
values in the residualsr
, or the JacobianJ
as missing values, and ignores the corresponding observations.The confidence interval calculation is valid for systems where the length of the residuals
r
exceeds the length of the coefficientsbeta
, and the JacobianJ
has full column rank. WhenJ
is ill-conditioned, the confidence intervals might be inaccurate.
Alternative Functionality
You can also get the confidence intervals by using the fitnlm
function instead of nlinfit
and the coefCI
function instead of nlparci
.
Version History
Introduced before R2006a