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.dataset
Original matrix of spectral intensities
Y
Dummy matrix representing the classes
nLV
Number of latent variables kept. If NULL
, will be set to 3 in the finla model.
RMSEP
Root mean squared error of prediction
R2
Coefficient of multiple determination
Q2
Cross-validated coefficient of multiple determination
Q2cum
Cumulative cross-validated coefficient of multiple determination (over all response variables)
ExpVarY
Proportion of Y variance explained by the model
ExpVarX
Proportion of X variance explained by the model
coefficients
PLSDA coefficients
scores
PLSDA scores
loadings
PLSDA loadings
VIP
The 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.