wrapperClassic1wayAnova: Wrapper for One-way Anova statistical test

View source: R/anova_analysis.R

wrapperClassic1wayAnovaR Documentation

Wrapper for One-way Anova statistical test

Description

Wrapper for One-way Anova statistical test

Usage

wrapperClassic1wayAnova(obj, with_post_hoc = "No", post_hoc_test = "No")

Arguments

obj

An object of class MSnSet.

with_post_hoc

a character string with 2 possible values: "Yes" and "No" (default) saying if function must perform a Post-Hoc test or not.

post_hoc_test

character string, possible values are "No" (for no test; default value) or TukeyHSD" or "Dunnett". See details of postHocTest() function to choose the appropriate one.

Details

This function allows to perform a 1-way Analysis of Variance. Also computes the post-hoc tests if the with_post_hoc parameter is set to yes. There are two possible post-hoc tests: the Tukey Honest Significant Differences (specified as "TukeyHSD") and the Dunnett test (specified as "Dunnett").

Value

A list of two dataframes. First one called "logFC" contains all pairwise comparisons logFC values (one column for one comparison) for each analysed feature (Except in the case without post-hoc testing, for which NAs are returned.); The second one named "P_Value" contains the corresponding p-values.

Author(s)

Hélène Borges

See Also

[postHocTest()]

Examples

utils::data(Exp1_R25_prot, package='DAPARdata')
obj <- Exp1_R25_prot[1:1000]
level <- obj@experimentData@other$typeOfData
metacell.mask <- match.metacell(GetMetacell(obj), 'missing', level)
indices <- GetIndices_WholeMatrix(metacell.mask, op='>=', th=1)
obj <- MetaCellFiltering(obj, indices, cmd='delete')
anovatest <- wrapperClassic1wayAnova(obj$new)


samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.