pls (version 2.1-0)

summary.mvr: Summary and Print Methods for PLSR and PCR objects

Description

Summary and print methods for mvr and mvrVal objects.

Usage

## S3 method for class 'mvr':
summary(object, what = c("all", "validation", "training"),
        digits = 4, print.gap = 2, ...)
## S3 method for class 'mvr':
print(x, \dots)
## S3 method for class 'mvrVal':
print(x, digits = 4, print.gap = 2, \dots)

Arguments

Value

  • print.mvr and print.mvrVal return the object invisibly.

encoding

latin1

Details

If what is "training", the explained variances are given; if it is "validation", the cross-validated RMSEPs (if available) are given; if it is "all", both are given.

See Also

mvr, pcr, plsr, RMSEP, MSEP

Examples

Run this code
data(yarn)
nir.mvr <- mvr(density ~ NIR, ncomp = 8, validation = "LOO", data = yarn)
nir.mvr
summary(nir.mvr)
RMSEP(nir.mvr)

Run the code above in your browser using DataLab