Learn R Programming

MachineShop (version 1.1.0)

PLSModel: Partial Least Squares Model

Description

Function to perform partial least squares regression.

Usage

PLSModel(ncomp = 1, scale = FALSE)

Arguments

ncomp

number of components to include in the model.

scale

logical indicating whether to scale the predictors by the sample standard deviation.

Value

MLModel class object.

Details

Response Types:

factor, numeric

Automatic Tuning Grid Parameters:

ncomp

Further model details can be found in the source link below.

See Also

mvr, fit, resample, tune

Examples

Run this code
# NOT RUN {
library(MASS)

fit(medv ~ ., data = Boston, model = PLSModel())

# }

Run the code above in your browser using DataLab