correlate(X, Y, method = c("pearson", "spearman", "kendall", "frequency", "cramersv",
"cindex"),strata, weights, outX = TRUE, bootstrap_count = 0, alpha = 0.05, alternative = c("two.sided", "less", "greater"))
X
.TRUE
, ignore ties; otherwise, take them into account when computing the concordance index.0
, analytical standard error for the correlation estimate in each strata is used to compute the meta-estimate (inverse-variance weighting avarega); otherwise a number of bootstraps are used to computes standard errors.correlate
function could be used to measure correlation between any types of variables:
Part of the code underlying correlate
is also used in mim
method of the mRMRe.Data
object because correlations are used to build the mutual information matrix in order for feature selection to take place. This is why these two functions have many argiuments in common.
mRMRe.Data-class
set.thread.count(2)
## load data
data(cgps)
## spearman correlation coefficent between the first gene and Camptothecin IC50
correlate(X=cgps.ge[ ,1], Y=cgps.ic50, method="spearman")
## concordance index between the first gene and Camptothecin IC50
correlate(X=cgps.ge[ ,1], Y=cgps.ic50, method="cindex")
Run the code above in your browser using DataLab