get_Components {MMINP} | R Documentation |
Estimate components for O2-PLS method
Description
get components number using Cross-validate procedure of O2-PLS
Usage
get_Components(
metag,
metab,
compmethod = NULL,
n = 1:10,
nx = 0:5,
ny = 0:5,
seed = 1234,
nr_folds = 3,
nr_cores = 1
)
Arguments
metag |
Training data of sequence features' relative abundances.
Must have the exact same rows (subjects/samples) as |
metab |
Training data of metabolite relative abundances.
Must have the exact same rows (subjects/samples) as |
compmethod |
A character string indicating which Cross-validate procedure of O2PLS is to be used for estimating components, must be one of "NULL", "cvo2m" or "cvo2m.adj". If set to "NULL", depends on the features number. |
n |
Integer. Number of joint PLS components. Must be positive.
More details in |
nx |
Integer. Number of orthogonal components in |
ny |
Integer. Number of orthogonal components in |
seed |
a random seed to make the analysis reproducible, default is 1234. |
nr_folds |
Positive integer. Number of folds to consider.
Note: |
nr_cores |
Positive integer. Number of cores to use for CV. You might
want to use |
Value
A data frame of components number