aldex.corr {ALDEx2}R Documentation

calculate Pearson's Product moment and Spearman's rank correlations

Description

calculates expected values of Pearson's Product moment and Spearman's rank correlations on the data returned by aldex.clr. NOTE: this function will be replaced by a compositionally correct method in the next release cycle.

Usage

aldex.corr(clr, covar)

Arguments

clr

clr is the data output of the aldex.clr function

covar

a per-sample continuous variable to be correlated with the clr values

Details

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

Value

Outputs a dataframe with the following information:

pearson.ecor

a vector containing the expected Pearson's Product moment value for each feature

pearson.ep

a vector containing the expected P value of the Pearson Product moment value for each feature

pearson.eBH

a vector containing the expected Benjamini-Hochberg corrected P value of the Pearson Product moment value for each feature

spearman.erho

a vector containing the expected Spearman's rank correlation value for each feature

spearman.ep

a vector containing the expected P value of Spearman's rank correlation value for each feature

spearman.eBH

a vector containing the expected Benjamini-Hochberg corrected P value of Spearman's rank correlation value for each feature

Author(s)

Arianne Albert

References

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

See Also

aldex.clr, aldex.glm, aldex.effect, selex

Examples

    # x is the output of the \code{x <- aldex.clr(data, mc.samples)} function
    # conditions is a description of the data
    # aldex.ttest(clr, covar)

[Package ALDEx2 version 1.12.0 Index]