ttest | R Documentation |
Welch's t-test
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
)
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 |
An S4 object of class Univariate
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.