Learn R Programming

chemometrics (version 1.3.5)

plotresprm: Plot residuals from repeated DCV of PRM

Description

Generate plot showing residuals for Repeated Double Cross Validation for Partial Robust M-regression

Usage

plotresprm(prmdcvobj, optcomp, y, X, ...)

Arguments

prmdcvobj
object from repeated double-CV of PRM, see prm_dcv
optcomp
optimal number of components
y
data from response variable
X
data with explanatory variables
...
additional plot arguments

Value

  • A plot is generated.

Details

After running repeated double-CV for PRM, this plot visualizes the residuals. The result is compared with predicted values obtained via usual CV of PRM.

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)
plot4 <- plotresprm(res,opt=res$afinal,yarn$density,yarn$NIR)

Run the code above in your browser using DataLab