| Statistics Toolbox | Search  Help Desk |
| nlpredci | Examples See Also |
Confidence intervals on predictions of nonlinear models.
Syntax
ypred = nlpredci('model',inputs,beta,r,J)
[ypred,delta] = nlpredci('model',inputs,beta,r,J)
Description
ypred = nlpredci('model',inputs,beta,r,J) returns the predicted responses,ypred, given the fitted parameters, beta, residuals, r, and the Jacobian matrix, J. inputs is a matrix of values of the independent variables in the nonlinear function.
[ypred,delta] = nlpredci('model',inputs,beta,r,J) also returns 95% confidence intervals, delta, on the nonlinear least squares predictions, pred. The confidence interval calculation is valid for systems where the length of r exceeds the length of beta and J is of full column rank.
nlpredci uses the outputs of nlinfit for its inputs.
Example
Continuing the example fromnlinfit:
load reaction
[beta,resids,J]=nlinfit(reactants,rate,'hougen',beta);
ci = nlpredci('hougen',reactants,beta,resids,J)
ci =
8.2937
3.8584
4.7950
-0.0725
2.5687
14.2227
2.4393
3.9360
12.9440
8.2670
-0.1437
11.3484
3.3145
See Also
nlinfit,nlintool,nlparci