predict.Tenv {TRES} | R Documentation |
Predict method for Tenv object.
Description
Predict response for the object returned from TRR.fit
and TPR.fit
functions.
Usage
## S3 method for class 'Tenv'
predict(object, newdata, ...)
Arguments
object |
An object of class |
newdata |
The data to be used for prediction. It can be a vector, a matrix or a tensor if |
... |
Additional arguments. No available arguments exist in this version. |
Value
Return the predicted response.
Note
If newdata
is missing, the fitted response from object
is returned.
Examples
data("bat")
x <- bat$x
y <- bat$y
fit <- TRR.fit(x, y, method="standard")
predict(fit, x)
[Package TRES version 1.1.5 Index]