Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotresmvr

Plot residuals from repeated DCV


Description

Generate plot showing residuals for Repeated Double Cross Validation

Usage

plotresmvr(mvrdcvobj, optcomp, y, X, method = "simpls", ...)

Arguments

mvrdcvobj

object from repeated double-CV, see mvr_dcv

optcomp

optimal number of components

y

data from response variable

X

data with explanatory variables

method

the multivariate regression method to be used, see mvr

...

additional plot arguments

Details

After running repeated double-CV, this plot visualizes the residuals.

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

Examples

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 <- mvr_dcv(y~.,data=NIR.Glc,ncomp=10,method="simpls",repl=10)
plot4 <- plotresmvr(res,opt=7,y,X,method="simpls")

chemometrics

Multivariate Statistical Analysis in Chemometrics

v1.4.2
GPL (>= 3)
Authors
Peter Filzmoser and Kurt Varmuza
Initial release
2017-03-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.