aldex.corr: Calculate correlation with a continuous variable

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/clr_corr.R

Description

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.

Usage

1
aldex.corr(clr, cont.var)

Arguments

clr

An ALDEx2 object. The output of aldex.clr.

cont.var

A continuous numeric vector

Value

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.

Author(s)

Arianne Albert, Greg Gloor, Thom Quinn

References

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

See Also

aldex, aldex.clr, aldex.ttest, aldex.kw, aldex.glm, aldex.effect, aldex.corr, selex

Examples

1
2
3
4
5
6
7
data(selex)
#subset for efficiency
selex <- selex[1:400,]
conds <- c(rep("N", 7), rep("S",7))
cont.var <-  c(rep(1,7), rep(2,7))
x <- aldex.clr(selex, conds)
corr.test <- aldex.corr(x, cont.var)

ALDEx2 documentation built on Nov. 8, 2020, 8:05 p.m.