trainPLS_general: Train PLS for train dataset by cross-validation

Description Usage Arguments

Description

Train PLS for train dataset by cross-validation. The preprocessing method will be optimized automatically. However, the number of latent variables has to be determined manually. Planning to add variable reduction in the future.

Usage

1
2
3
trainPLS_general(x, y, maxncomp = 20, cvsegments = 10, round = 2,
  ncomp = c("auto", "manual", "fixed"), fixedncomp = NULL,
  threshold = 0.02, saveModel = FALSE, plotting = TRUE)

Arguments

x

predictor matrix

y

prediction target vector

maxncomp

maximum ncomp for calculation

cvsegments

refer to mvrCv's segments argument

ncomp

'auto','manual' or 'fixed'

fixedncomp

fixed numerical value

threshold

threshold for selecting ncomp


chengvt/cheng documentation built on May 13, 2019, 3:52 p.m.