Learn R Programming

chemometrics (version 1.3.5)

plotcompprm: Component plot for repeated DCV of PRM

Description

Generate plot showing optimal number of components for Repeated Double Cross-Validation of Partial Robust M-regression

Usage

plotcompprm(prmdcvobj, ...)

Arguments

prmdcvobj
object from repeated double-CV of PRM, see prm_dcv
...
additional plot arguments

Value

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

Details

After running repeated double-CV for PRM, 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

prm

Examples

Run this code
require(pls)
data(yarn)
res <- prm_dcv(yarn$NIR,yarn$density,a=4,repl=2)
plot2 <- plotcompprm(res)

Run the code above in your browser using DataLab