Learn R Programming

ALDEx2 (version 1.4.0)

aldex.corr: 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 clr_function.r

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

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

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.glm, 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
    # aldex.ttest(clr, covar)

Run the code above in your browser using DataLab