predict.fastPLS: Prediction Partial Least Squares regression.
Description
Partial Least Squares (PLS) regression for test set from training set.
Usage
# S3 method for fastPLS
predict(object, newdata, Ytest=NULL, proj=FALSE, ...)
Value
A list with the following components:
Ypred
the (ntest x m x length(ncomp)) containing the predicted values of the response variables for the observations from Xtest. The third dimension of the matrix Ypred corresponds to the number of PLS components used to compute the regression coefficients.
Q2Y
predictive power of model
Ttest
the (ntrain x max(ncomp)) matrix containing the X-scores (latent components)
Arguments
object
a matrix of training set cases.
newdata
a matrix of predictor variables X for the test set.