summary.mvr {pls.pcr}R Documentation

Summary of a MVR object

Description

The information in the MVR object is summarised: the function gives the dimensions of X and Y, the method used, and the number of latent variables considered. If what equals "all" or "training", the RMS and R2 values of the training set are given; if what equals "all" or "validation", RMS and R2 values for the cross-validation are given. In the latter case, a suggeston is made about the optimal number of latent variables, as suggested in Hastie et al. (2001).

Usage

summary.mvr(object, what, ...)

Arguments

object An MVR object.
what one of "all", "training" or "validation".
... other arguments to summary (not used).

References

T. Hastie, R. Tibshirani and J. Friedman, The elements of statistical learning, Springer (2001).

Examples

data(NIR)
attach(NIR)
nir.mvr <- mvr(Xtrain,Ytrain,2:8)
summary(nir.mvr)

[Package Contents]