calculate_var_shares_linear: Calculates contributions to variance from a contribution...

View source: R/core_mimosa2_funcs.R

calculate_var_shares_linearR Documentation

Calculates contributions to variance from a contribution table

Description

Calculates contributions to variance from a contribution table

Usage

calculate_var_shares_linear(
  species_contribution_table,
  valueVar = "newValue",
  model_cov = F
)

Arguments

species_contribution_table

Table of species contributions (with residuals)

valueVar

Column name to use for values

model_cov

Just calculate covariances with metabolite/response data

metVar

If model_cov = T, variable name for metabolite concentrations

Value

Data table of variance shares by each species in the original table for each metabolite

Examples

calculate_var_shares_linear(species_cmps)

borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.