`ypred = predict(mdl,Xnew)`

[ypred,yci]
= predict(mdl,Xnew)

[ypred,yci]
= predict(mdl,Xnew,Name,Value)

returns
the predicted response of the `ypred`

= predict(`mdl`

,`Xnew`

)`mdl`

linear 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.

For predictions with added noise, use

`random`

.

`feval`

gives
the same predictions, but uses multiple input arrays with one component
in each input argument. `feval`

can be simpler to use
with a model created from a table or dataset array, although `feval`

does
not give confidence intervals on its predictions.

`random`

predicts
with added noise.

Was this topic helpful?