anova: ANOVA

anovaR Documentation

ANOVA

Description

One-way analysis of variance (ANOVA).

Usage

anova(
  x,
  cls = "class",
  pAdjust = "bonferroni",
  comparisons = list(),
  returnModels = FALSE
)

## S4 method for signature 'AnalysisData'
anova(
  x,
  cls = "class",
  pAdjust = "bonferroni",
  comparisons = list(),
  returnModels = FALSE
)

Arguments

x

S4 object of class AnalysisData

cls

a vector of sample info column names to analyse

pAdjust

p value adjustment method

comparisons

list of comparisons to perform

returnModels

should models be returned

Examples

library(metaboData)

d <- analysisData(abr1$neg[,200:300],abr1$fact)

## Perform ANOVA
anova_analysis <- anova(d,cls = 'day')

## Extract significant features
explanatoryFeatures(anova_analysis)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.