Learn R Programming

ALDEx2 (version 1.4.0)

aldex.glm: calculate glm and Kruskal Wallis test statistics

Description

calculates expected values of the glm and Kruskal Wallis functions on the data returned by clr_function.r

Usage

aldex.glm(clr, conditions, useMC=FALSE)

Arguments

clr
clr is the data output of aldex.clr
conditions
a description of the data structure to be used for testing
useMC
use multicore by default (FALSE)

Value

Outputs a dataframe 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 expected value of the Benjamini Hochberg corrected P value for each feature
glm.ep
a vector containing the expected P value of the glm test for each feature
glm.eBH
a vector containing the expected value of the Benjamini Hochberg corrected P value for each feature

Details

An explicit example for two conditions is shown in the `Examples' below.

References

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

See Also

aldex.clr, aldex.ttest, aldex.effect, selex

Examples

Run this code
    # x is the output of the \code{x <- aldex.clr(data, mc.samples)} function
    # conditions is a description of the data
    # for the selex dataset, conditions <- c(rep("N", 7), rep("S", 7))
    data(selex)
    x <- aldex.clr(selex, mc.samples=1)
    conditions <- c(rep("N", 7), rep("S", 7))
    glm.test <- aldex.glm(x, conditions)

Run the code above in your browser using DataLab