Learn R Programming

quantable (version 0.3.6)

pvalCorMat: pvalues for correlation matrix -

Description

Benjamin Hochberg - adjusted tests for significance of correlations among rows. Transpose your matrix if you want to have it among columns

Usage

pvalCorMat(x, alternative = "two.sided", method = "spearman")

Arguments

x

data matrix

alternative

(see cor.test)

method

(see cor.test)

Examples

Run this code
# NOT RUN {
mat = matrix(rnorm(10*20),ncol=10)
res = pvalCorMat(mat)
image(res$pval)
image(res$cor)
# }

Run the code above in your browser using DataLab