aldex.corr {ALDEx2} | 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.
By default uses pearson but method="kendall" or "spearman" can be
passed to the cor.test function.
aldex.corr(clr, cont.var, verbose = FALSE, ...)
clr |
An |
cont.var |
A continuous numeric vector |
verbose |
A boolean. Toggles whether to print diagnostic information while
running. Useful for debugging errors on large datasets. Applies to
|
... |
Arguments passed to |
Returns a data.frame of the average
coefficients and their p-values for each feature,
with FDR appended as a BH
column.
Thom Quinn, Greg Gloor
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[1201:1600,] conds <- c(rep("N", 7), rep("S",7)) cont.var <- 1:14 x <- aldex.clr(selex, conds) corr.test <- aldex.corr(x, cont.var)