get_Q2 {morepls}R Documentation

Q2 and cumulative Q2 indexes

Description

Computes Q2 and cumulative Q2 indexes from a PLS regression.

Usage

get_Q2(object)

Arguments

object

an object of class mvr from pls package. It has to be cross-validated

Value

A list with the following elements :

Q2kh

Q2 index by X variable and number of components

Q2h

Q2 index by number of components

Q2cumkh

cumulative Q2 index by X variable and number of components

Q2cumh

cumulative Q2 index by number of components

Author(s)

Nicolas Robette

References

Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.

Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.

Examples

library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
           ncomp = 5,
           data = yarn,
           validation = "CV",
           method = "oscorespls")
res <- get_Q2(pls)
str(res)

[Package morepls version 0.1 Index]