summary.mvr {pls} | R Documentation |
Summary and print methods for mvr
and mvrVal
objects.
## S3 method for class 'mvr': summary(object, what = c("all", "validation", "training"), digits = 4, print.gap = 2, ...) ## S3 method for class 'mvr': print(x, ...) ## S3 method for class 'mvrVal': print(x, digits = 4, print.gap = 2, ...)
x, object |
an mvr object |
what |
one of "all", "validation" or "training" |
digits |
integer. Minimum number of significant digits in the output. Default is 4. |
print.gap |
Integer. Gap between coloumns of the printed tables. |
... |
Other arguments sent to underlying methods. |
If what
equals "training", the explained variances are
given; if it equals "validation", the cross-validated RMSEPs (if
available) are given; if it equals "all", both are given.
print.mvr
and print.mvrVal
return the object invisibly.
Ron Wehrens and Bjørn-Helge Mevik
data(NIR) nir.mvr <- mvr(y ~ X, ncomp = 8, CV = TRUE, length.seg = 1, data = NIR) nir.mvr summary(nir.mvr) RMSEP(nir.mvr)