View source: R/core_mimosa2_funcs.R
fit_cmp_mods | R Documentation |
Fits model scaling total CMPs to metabolite concentrations
fit_cmp_mods(
species_cmps,
mets_melt,
rank_based = F,
rank_type = "Rfit",
cmp_nonzero_min = 4,
FDRcorrect = T
)
species_cmps |
Table of species contribution abundances |
mets_melt |
Table of metabolite concentrations |
rank_based |
Whether to use Rfit instead of standard linear regression |
rank_type |
Type of robust regression to use (Rfit or mblm) |
cmp_nonzero_min |
Filter metabolites that have fewer than this number of nonzero CMP scores |
FDRcorrect |
Whether to include a column of FDR-corrected p-values |
List of 2 data.tables - one with model summary results, one with model residuals
fit_cmp_mods(species_cmps, met_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.