plotpredprm: Plot predictions from repeated DCV of PRM

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/plotpredprm.R

Description

Generate plot showing predicted values for Repeated Double Cross Validation of Partial Robust M-regression

Usage

1
plotpredprm(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

Details

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

Value

A plot is generated.

Author(s)

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

References

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

See Also

prm

Examples

1
2
3
4
5
6
data(NIR)
X <- NIR$xNIR[1:30,]      # first 30 observations - for illustration
y <- NIR$yGlcEtOH[1:30,1] # only variable Glucose
NIR.Glc <- data.frame(X=X, y=y)
res <- prm_dcv(X,y,a=4,repl=2)
plot3 <- plotpredprm(res,opt=res$afinal,y,X)

chemometrics documentation built on May 19, 2017, 7:46 a.m.

Search within the chemometrics package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.