Learn R Programming

TRES (version 1.1.5)

predict.Tenv: Predict method for Tenv object.

Description

Predict response for the object returned from TRR.fit and TPR.fit functions.

Usage

# S3 method for Tenv
predict(object, newdata, ...)

Arguments

object

An object of class "Tenv", as the ones returned from TPR.fit or TRR.fit.

newdata

The data to be used for prediction. It can be a vector, a matrix or a tensor if object is returned fromTRR.fit, and can be a matrix or a tensor if object is returned from TPR.fit.

...

Additional arguments. No available arguments exist in this version.

Value

Return the predicted response.

Examples

Run this code
# NOT RUN {
data("bat")
x <- bat$x
y <- bat$y
fit <- TRR.fit(x, y, method="standard")
predict(fit, x)
# }

Run the code above in your browser using DataLab