pls.recovery.Rd
This function fits a partial least squares (PLS) or sparse partial least squares (sPLS) regression model to predict \(\hat{Y}\) using the predictor matrix \(X\). The fitted values \(\hat{Y}\) are returned.
A numeric vector representing the response variable.
A numeric matrix or data frame representing the predictor variables.
An integer specifying the number of components to use in the PLS regression model.
A numeric vector specifying the number of variables to keep in each dimension. By default, all variables are used.
A numeric vector \(\hat{Y}\) containing the predicted values from the PLS regression model.
This function performs PLS regression using the mixOmics
package. It allows for both standard PLS and sparse PLS, where keepX
controls the number of variables retained in each dimension. The function returns the predicted values \(\hat{Y}\) for the response variable \(Y\) using all the components specified by ncomp
.
Other recovery:
glmnet.recovery()
,
ols.recovery()
,
simple.recovery()
,
spls.recovery()