hi @enzo
We have the R2 and Q2 for a PLS object using the perf()
function. We have not implemented it for PLS-DA. You could do it manually by inputing Y as a dummy matrix (Y.dummy <- map(Y)
) then input in pls(X, Y.dummy)
, although we never really tested. Q2 and R2 seem best defined for a regression model rather than classification.
Kim-Anh