cor.pairs {dcanr} | R Documentation

## Fast pairwise correlation estimation

### Description

Fast estimation of pairwise correlation coefficients.

### Usage

    cor.pairs(emat, cor.method = c("pearson", "spearman"))

### Arguments

`emat` | a numeric matrix
`cor.method` | a character, specifying the method to use for estimation. Possible values are 'pearson' (default) and 'spearman'

### Value

a numeric matrix with estimated correlation coefficients

### Examples

    x <- matrix(rnorm(200), 100, 2)
    cor.pairs(x)
    cor.pairs(x, cor.method = 'spearman')

[Package dcanr version 1.0.0 Index]