There is bug in getRegcoeffs.regmodel() method which leads to an error message if it is called for model created without scaling/standardization of training data. Here is the code to reproduce the bug:
library(mdatools)
data(people)
X <- people[, -4]
y <- people[, 4, drop = FALSE]
m <- pls(X, y, 10, cv = 1)
getRegcoeffs(m)
The error message is:
Error in rep(1, nrow(out)) : invalid 'times' argument
There is bug in
getRegcoeffs.regmodel()
method which leads to an error message if it is called for model created without scaling/standardization of training data. Here is the code to reproduce the bug:The error message is: