For section 5.8.5 ( tuning parameters and numerical outputs), I’ve ran into an issue in that this section of code:
MyResult.pls <- pls(X,Y, ncomp = 4) set.seed(30) # for reproducbility in this vignette, otherwise increase nrepeat perf.pls <- perf(MyResult.pls, validation = "Mfold", folds = 5, progressBar = FALSE, nrepeat = 10) plot(perf.pls$Q2.total) abline(h = 0.0975)
returns the errors:
1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf 3: In min(x) : no non-missing arguments to min; returning Inf 4: In max(x) : no non-missing arguments to max; returning -Inf
I’ve had a look at the outputs of perf and realised that the desired output is in perf.pls$measures$Q2.total - however attempts to plot this have not worked similarly to the output in the vignette.
Is there a change to the code which will allow for similar output?
Hope the team is well, take care.