powered by
Functions to report the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y) for PLS models.
R2s(object)
an mvdareg object, i.e., plsFit.
plsFit
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
R2s is used to extract a summary of the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y) for PLS models.
R2s
data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") R2s(mod1) if (FALSE) { plot(R2s(mod1)) }
Run the code above in your browser using DataLab