Learn R Programming

mvdalab (version 1.7)

R2s: Cross-validated R2, R2 for X, and R2 for Y for PLS models

Description

Functions to report the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y) for PLS models.

Usage

R2s(object)

Arguments

object

an mvdareg object, i.e., plsFit.

Author

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

Details

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.

Examples

Run this code
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