predict
Class: NonLinearModel
Predict response of nonlinear regression model
Syntax
ypred = predict(mdl,Xnew)
[ypred,yci]
= predict(mdl,Xnew)
[ypred,yci]
= predict(mdl,Xnew,Name,Value)
Description
returns
the predicted response of the ypred
= predict(mdl
,Xnew
)mdl
nonlinear regression
model to the points in Xnew
.
[
returns
confidence intervals for the true mean responses.ypred
,yci
]
= predict(mdl
,Xnew
)
[
predicts
responses with additional options specified by one or more ypred
,yci
]
= predict(mdl
,Xnew
,Name,Value
)Name,Value
pair
arguments.
Input Arguments
|
Nonlinear regression model, constructed by |
|
Points at which
|
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
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
Tips
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.