View source: R/core_mimosa2_funcs.R
run_shapley_contrib_analysis | R Documentation |
Calculates contributions to variance using permutation/subset Shapley analysis for regression fits
run_shapley_contrib_analysis(
species_cmps,
mets_melt,
config_table,
nperm = 15000,
signif_threshold = 0.01,
return_perm = F
)
species_cmps |
Table of species contributions (without residuals) |
mets_melt |
Table of metabolite concentrations |
config_table |
Configuration table including model-fitting settings |
nperm |
Number of permutations per decomposition |
signif_threshold |
Will only analyze models with a p-value below this threshold |
return_perm |
Whether to return full table of permutation results |
Data table of variance shares by each species in the original table for each metabolite
run_shapley_contrib_analysis(species_cmps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.