Description Usage Arguments Details
Automatically determine ncomp from pls model after performing cross-validation
1 | find_ncomp(plsmodel_cv, threshold = 0.05)
|
plsmodel_cv |
plsmodel from pls package after performing cross-validation |
threshold |
threshold (see details) |
This function extracts RMSECV from pls model and pick the suitable ncomp by the following criteria: (1) if the graph is continuously upward, the first component will be selected, (2) if the decrease in RMSECV value is less than the specified threshold (default threshold = 0.05), the previous ncomp will be selected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.