svkucheryavski / mdatools

R package for Multivariate Data Analysis
https://mda.tools
Other
33 stars 11 forks source link

`selectCompNum.pls` shows unexpected warning #111

Closed svkucheryavski closed 1 year ago

svkucheryavski commented 1 year ago

When selectCompNum() method is used with PLS model to select user defined number of components it shows the same warning as if the selection should be done automatically and no validation results are provided. Here is a code to reproduce the bug:

data(people)
m = pls(people[, -4], people[, 4], 7)
m = selectCompNum(m, 7)

When building the model the warning message is expected. But when selecting user defined number of components — not.