Learn R Programming

chemometrics (version 0.5)

plotcompmvr: 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

Value

  • optcompoptimal number of components
  • compdistribfrequencies for the optimal number of components

Details

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

References

K. Varmuza and P. Filzmoser: Introduction to Multivariate Statistical Analysis in Chemometrics. CRC Press, Boca Raton, FL, 2009.

See Also

mvr

Examples

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

Run the code above in your browser using DataLab