PE: Percent Explained Variation of X

Description Usage Arguments Details Author(s) Examples

View source: R/PE.R

Description

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

Usage

1
PE(object, verbose = FALSE)

Arguments

object

an object of class mvdareg or mvdapca objects.

verbose

output results as a data frame

Details

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

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "none")
PE(mod1)

## Not run: 
data(Penta)
## Number of bootstraps set to 300 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod2 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "oob", boots = 300)
PE(mod2)

## End(Not run)

mvdalab documentation built on May 30, 2017, 2:40 a.m.

Search within the mvdalab package
Search all R packages, documentation and source code