get_Q2: Q2 and cumulative Q2 indexes

View source: R/get_Q2.R

get_Q2R 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)

morepls documentation built on June 8, 2025, 10:34 a.m.