aldex.corr | R Documentation |
aldex.corr
calculates the expected values for the correlation
between each feature and a continuous variable, using data returned
returned by aldex.clr
and a vector of the continuous variable.
Returns results of Pearson, Spearman and Kendall tests.
aldex.corr(clr, cont.var)
clr |
An |
cont.var |
A continuous numeric vector |
Returns a data.frame of the average
Pearson, Spearman and Kendall
coefficients and their p-values for each feature,
with FDR appended as a BH
column.
Arianne Albert, Greg Gloor, Thom Quinn
Please use the citation given by
citation(package="ALDEx2")
.
aldex
,
aldex.clr
,
aldex.ttest
,
aldex.kw
,
aldex.glm
,
aldex.effect
,
aldex.corr
,
selex
data(selex)
#subset for efficiency
selex <- selex[1:50,]
conds <- c(rep("N", 7), rep("S",7))
cont.var <- c(rep(1,7), rep(2,7))
x <- aldex.clr(selex, conds, mc.samples=16)
corr.test <- aldex.corr(x, cont.var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.