get_Q2 | R Documentation |
Computes Q2 and cumulative Q2 indexes from a PLS regression.
get_Q2(object)
object |
an object of class |
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.