Train PLS for train dataset by cross-validation. This is different from trainPLS as you have to specify the preprocessing method manually.
1 2 3 4 |
x |
predictor matrix |
y |
prediction target vector |
maxncomp |
maximum ncomp for calculation |
cvsegments |
refer to mvrCv's segments argument |
round |
round numbers |
reduceVar |
variable reduction using VIP |
cycles |
cycles for variable reduction |
ncomp |
'auto','manual' or 'fixed' |
fixedncomp |
fixed numerical value |
prepro |
preprocessing method. Choose from c("mc", "norm_mc","au"). Default to "mc" if not specified. |
threshold |
threshold for selecting ncomp |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.