aldex.kw: Calculate the Kruskal-Wallis test and glm ANOVA statistics

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/clr_glm.r

Description

aldex.kw calculates the expected values of the Kruskal-Wallis test and a glm ANOVA on the data returned by aldex.clr.

Usage

1
aldex.kw(clr, useMC = FALSE, verbose = FALSE)

Arguments

clr

An ALDEx2 object. The output of aldex.clr.

useMC

Toggles whether to use multi-core.

verbose

A boolean. Toggles whether to print diagnostic information while running. Useful for debugging errors on large datasets. Applies to effect = TRUE.

Value

Returns a data.frame with the following information:

kw.ep

a vector containing the expected p-value of the Kruskal-Wallis test for each feature

kw.eBH

a vector containing the corresponding expected value of the Benjamini-Hochberg corrected p-value for each feature

glm.ep

a vector containing the expected p-value of the glm ANOVA for each feature

glm.eBH

a vector containing the corresponding expected value of the Benjamini-Hochberg corrected p-value for each feature

Author(s)

Arianne Albert

References

Please use the citation given by citation(package="ALDEx2").

See Also

aldex, aldex.clr, aldex.ttest, aldex.kw, aldex.glm, aldex.effect, aldex.corr, selex

Examples

1
2
3
4
5
6
data(selex)
#subset for efficiency
selex <- selex[1201:1600,]
conds <- c(rep("A", 4), rep("B", 3), rep("C", 7))
x <- aldex.clr(selex, conds, mc.samples=1, denom="all")
kw.test <- aldex.kw(x)

ALDEx2 documentation built on Nov. 8, 2020, 8:05 p.m.