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

R2sR Documentation

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.

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.

Author(s)

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

Examples

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)

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.