Learn R Programming

TRES (version 0.1.0)

TensPLS_cv2d3d: Envelope dimension by cross-validation for tensor predictor regression

Description

This function obtain the envelope dimension by cross-validation for tensor predictor regression.

Usage

TensPLS_cv2d3d(X0, Y0, maxdim, nfolds)

Arguments

X0

A predictor tensor instance.

Y0

The response vector.

maxdim

The largest dimension to be considered for selection.

nfolds

Number of folds for cross-validation.

Value

mincv

The minimum sum of squared error.

u

The envelope subspace dimension selected.

References

Zhang, X., & Li, L. (2017). Tensor Envelope Partial Least-Squares Regression. Technometrics, 59(4), 426-436.