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