predict.Tenv: Predict method for Tenv object.

Description Usage Arguments Value Note Examples

View source: R/predict.Tenv.R

Description

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

Usage

1
2
## S3 method for class '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.

Note

If newdata is missing, the fitted response from object is returned.

Examples

1
2
3
4
5
data("bat")
x <- bat$x
y <- bat$y
fit <- TRR.fit(x, y, method="standard")
predict(fit, x)

TRES documentation built on Oct. 20, 2021, 9:06 a.m.