PLSModel: Partial Least Squares Model

View source: R/ML_PLSModel.R

PLSModelR Documentation

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.

Details

Response types:

factor, numeric

Automatic tuning of grid parameters:

ncomp

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

Value

MLModel class object.

See Also

mvr, fit, resample

Examples


## Requires prior installation of suggested package pls to run

fit(sale_amount ~ ., data = ICHomes, model = PLSModel)



MachineShop documentation built on Sept. 11, 2024, 6:28 p.m.