Learn R Programming

mvdalab (version 1.7)

PE: Percent Explained Variation of X

Description

This function provides both the cumulative and individual percent explained for the X-block for an mvdareg and mvdapca objects.

Usage

PE(object, verbose = FALSE)

Arguments

object

an object of class mvdareg or mvdapca objects.

verbose

output results as a data frame

Author

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

Details

This function provides both the cumulative and individual percent explained for the X-block for an mvdareg or mvdapca objects.

Examples

Run this code

mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "none")
PE(mod1)

if (FALSE) {
data(Penta)
mod2 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "loo")
PE(mod2)
}

Run the code above in your browser using DataLab