ttest: Welch's t-test

ttestR Documentation

Welch's t-test

Description

Welch's t-test

Usage

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

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

Arguments

x

S4 object of class AnalysisData

cls

vector of sample information column names to analyse

pAdjust

p value adjustment method

comparisons

named list of binary comparisons to analyse

returnModels

should models be returned

Value

An S4 object of class Univariate.

Examples

library(metaboData)

d <- analysisData(abr1$neg[,200:300],abr1$fact) %>% 
 keepClasses(cls = 'day',classes = c('H','5'))

## Perform t-test
ttest_analysis <- ttest(d,cls = 'day')

## Extract significant features
explanatoryFeatures(ttest_analysis)

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