omu_anova: Perform anova Performs an anova across all response...

Description Usage Arguments Examples

View source: R/omu_anova.R

Description

Perform anova Performs an anova across all response variables. The function can take a maximum of 2 independent variables and perform an interaction term between them.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
omu_anova(
  count_data,
  metadata,
  response_variable,
  var1,
  var2,
  interaction,
  log_transform,
  p_adjust
)

Arguments

count_data

A metabolomics count data frame

metadata

Metadata dataframe for the metabolomics count data frame

response_variable

String of the column header for the response variables, usually "Metabolite"

var1

String of the first independent variable you wish to test

var2

String of the second independent variable you wish to test. Optional parameter

interaction

Boolean of TRUE or FALSE for whether or not you wish to model an interaction between independent variables. Optional parameter

log_transform

Boolean of TRUE or FALSE for whether or not you wish to log transform your metabolite counts

p_adjust

Method for p value adjustment, i.e. "BH"

Examples

1
2
3
anova_df <- omu_anova(count_data = c57_nos2KO_mouse_countDF, metadata = c57_nos2KO_mouse_metadata,
response_variable = "Metabolite", var1 = "Treatment", var2 = "Background", log_transfor = TRUE,
p_adjust = "BH", interaction = TRUE)

omu documentation built on July 1, 2020, 5:18 p.m.