powered by
Computes Q2 and cumulative Q2 indexes from a PLS regression.
get_Q2(object)
A list with the following elements :
Q2 index by X variable and number of components
Q2 index by number of components
cumulative Q2 index by X variable and number of components
cumulative Q2 index by number of components
an object of class mvr from pls package. It has to be cross-validated
mvr
pls
Nicolas Robette
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.
library(pls) data(yarn) pls <- mvr(density ~ NIR, ncomp = 5, data = yarn, validation = "CV", method = "oscorespls") res <- get_Q2(pls) str(res)
Run the code above in your browser using DataLab