Description Usage Arguments Value Examples
K-fold cross-validation for OPLS-DA based on the RMSE criterion and stratified according to y.
1 |
x |
A data matrix on which will be based the analysis. |
y |
A numerical vector representing the class of individuals. |
k_fold |
The number of sub-datasets to create for cross-validation. |
NumOrtho |
The maximum number of orthogonal components allowed in OPLSDA. |
ImpG |
If |
A list with the following elements:
RMSECV
RMSECV from the OPLSDA cross-validation.
folds_i
A vector indicating the group of observations for cross-validation.
Prop1
Table of proportions of 1's in y for each subgroup.
yres
List with true and predicted classes for each NumOrtho
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.