Description Usage Arguments Value Examples
A wrapper for fitting a PLS-DA model using plsda function of the mixOmics package. Automatically evaluates performance with different number of components and chooses the optimal number of components.
1 | mixomics_plsda_optimize(object, y, ncomp_max, ...)
|
object |
a MetaboSet object |
y |
character, column name of the grouping variable to predict |
ncomp_max |
numeric, the maximum number of components to try |
... |
any parameters passed to |
an object of class "plsdsa"
1 | plsda_res <- mixomics_plsda_optimize(merged_sample, y = "Group", ncomp_max = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.