Description Usage Arguments Value Author(s) Examples
PLS-DA model for multiple classes (2 or more).
1 2 3 4 5 6 7 8 |
x |
A numeric matrix of spectral intensities. |
y |
The real groups' memberships of the samples. |
nLV |
The number of latent variables for PLS-DA. |
drawRMSEP |
Logical, if |
validation |
The type of validation (see 'pls::plsr()' for more info). |
... |
Additional arguments to be passed to 'pls::plsr()' (eg: 'segments'). |
A list with the following elements:
original.datasetOriginal matrix of spectral intensities
YDummy matrix representing the classes
nLVNumber of latent variables kept. If NULL, will be set to 3 in the finla model.
RMSEPRoot mean squared error of prediction
R2Coefficient of multiple determination
Q2Cross-validated coefficient of multiple determination
Q2cumCumulative cross-validated coefficient of multiple determination (over all response variables)
ExpVarYProportion of Y variance explained by the model
ExpVarXProportion of X variance explained by the model
coefficientsPLSDA coefficients
scoresPLSDA scores
loadingsPLSDA loadings
VIPThe variable VIPs
Manon Martin
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.