R2s | R Documentation |
Functions to report the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y) for PLS models.
R2s(object)
object |
an mvdareg object, i.e., |
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.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") R2s(mod1) ## Not run: plot(R2s(mod1)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.