powered by
Function to perform partial least squares regression.
PLSModel(ncomp = 1, scale = FALSE)
MLModel class object.
MLModel
number of components to include in the model.
logical indicating whether to scale the predictors by the sample standard deviation.
factor, numeric
factor
numeric
ncomp
Further model details can be found in the source link below.
mvr, fit, resample
mvr
fit
resample
# \donttest{ ## Requires prior installation of suggested package pls to run fit(sale_amount ~ ., data = ICHomes, model = PLSModel) # }
Run the code above in your browser using DataLab