plotSEPmvr {chemometrics} | R Documentation

## Plot SEP from repeated DCV

### Description

Generate plot showing SEP values for Repeated Double Cross Validation

### Usage

    plotSEPmvr(mvrdcvobj, optcomp, y, X, method = "simpls", complete = TRUE, ...)

### 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`
`complete` | if TRUE the SEPcv values are drawn and computed for the same range of components as included in the mvrdcvobj object; if FALSE only optcomp components are computed and their results are displayed
`...` | additional plot arguments

### Details

After running repeated double-CV, this plot visualizes the distribution of the SEP values.

### Value

`SEPdcv` | all SEP values from repeated double-CV
`SEPcv` | SEP values from classical CV

### 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

`mvr`

### Examples

    require(pls)
    data(yarn)
    res <- mvr_dcv(density~NIR,ncomp=10,data=yarn,method="simpls",repl=10)
    plot1 <- plotSEPmvr(res,opt=7,yarn$density,yarn$NIR,method="simpls")

[Package chemometrics version 0.6 Index]