Syntax
ypred = predict(mdl,Xnew)
[ypred,开办]= predict(mdl,Xnew)
[ypred,开办]= predict(mdl,Xnew,Name,Value)
Description
returns the predicted response of theypred
= predict(mdl
,Xnew
)mdl
nonlinear regression model to the points inXnew
.
[
returns confidence intervals for the true mean responses.ypred
,yci
] = predict(mdl
,Xnew
)
[
predicts responses with additional options specified by one or moreypred
,yci
] = predict(mdl
,Xnew
,Name,Value
)Name,Value
pair arguments.
Input Arguments
|
Nonlinear regression model, constructed by |
|
Points at which
|
Name-Value Pair Arguments
Specify optional comma-separated pairs ofName,Value
arguments.Name
is the argument name andValue
is the corresponding value.Name
must appear inside single quotes (' '
). You can specify several name and value pair arguments in any order asName1,Value1,...,NameN,ValueN
.
|
Positive scalar from Default: |
|
Type of prediction:
For details, see Default: |
|
Logical value specifying whether the confidence bounds are for all predictor values simultaneously ( For details, see Default: |
|
Vector of real, positive value weights or a function handle.
Given weights, Default:No weights |
Output Arguments
|
Predicted mean values at |
|
Confidence intervals, a two-column matrix with each row providing one interval. The meaning of the confidence interval depends on the settings of the name-value pairs. |
Examples
References
[1] Lane, T. P. and W. H. DuMouchel. "Simultaneous Confidence Intervals in Multiple Regression."The American Statistician. Vol. 48, No. 4, 1994, pp. 315–321.
[2] Seber, G. A. F., and C. J. Wild.Nonlinear Regression. Hoboken, NJ: Wiley-Interscience, 2003.