selectCompNum.pls: Select optimal number of components for PLS model
Description
Allows user to select optimal number of components for PLS model
Usage
# S3 method for pls
selectCompNum(model, ncomp = NULL)
Arguments
model
PLS model (object of class pls
)
ncomp
number of components to select
Value
the same model with selected number of components
Details
If number of components is not specified, the Wold's R criterion is used.
See examples in help for pls
function.