If you want to use perf_mddsPLS or mddsPLS with mode = "logit", y has to be a factor, it doesn't work with 1/0 as numeric. Instead it throws the cryptic error: Error in newY[i_new] <- as.character(RES$y) : replacement has length zero
It would be great if you could add it to the documentation that one has to use factors. Also, you could maybe add an input check to give more helpful error messages.
If you want to use
perf_mddsPLSormddsPLSwithmode = "logit",yhas to be a factor, it doesn't work with 1/0 as numeric. Instead it throws the cryptic error:Error in newY[i_new] <- as.character(RES$y) : replacement has length zeroIt would be great if you could add it to the documentation that one has to use factors. Also, you could maybe add an input check to give more helpful error messages.