mixomics_plsda_optimize: PLS-DA

Description Usage Arguments Value Examples

View source: R/multivariate.R

Description

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.

Usage

1
mixomics_plsda_optimize(object, y, ncomp_max, ...)

Arguments

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 mixOmics::plsda

Value

an object of class "plsdsa"

Examples

1
plsda_res <- mixomics_plsda_optimize(merged_sample, y = "Group", ncomp_max = 3)

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.