aldex.corr {ALDEx2} | R Documentation |
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.
aldex.corr(clr, covar)
clr |
|
covar |
a per-sample continuous variable to be correlated with the clr values |
An explicit example for two conditions is shown in the 'Examples' below.
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 |
Arianne Albert
Please use the citation given by citation(package="ALDEx")
.
aldex.clr
,
aldex.glm
,
aldex.effect
,
selex
# 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)