plotcompmvr {chemometrics}R Documentation

Component plot for repeated DCV

Description

Generate plot showing optimal number of components for Repeated Double Cross-Validation

Usage

plotcompmvr(mvrdcvobj, ...)

Arguments

mvrdcvobj object from repeated double-CV, see mvr_dcv
... additional plot arguments

Details

After running repeated double-CV, this plot helps to decide on the final number of components.

Value

optcomp optimal number of components
compdistrib frequencies for the optimal number of components

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at>

References

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press. To appear.

See Also

mvr

Examples

require(pls)
data(yarn)
res <- mvr_dcv(density~NIR,ncomp=10,data=yarn,method="simpls",repl=10)
plot2 <- plotcompmvr(res)

[Package chemometrics version 0.4 Index]