Rdocumentation
powered by
Learn R Programming
mdatools (version 0.5.3)
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 class 'pls': selectCompNum(model, ncomp)
Arguments
model
PLS model (object of class
pls
)
ncomp
number of components to select
Value
the same model with selected number of components
Details
See examples in help for
pls
function.