Spearman: Spearman's Rank Correlation

Description Usage Arguments Value See Also Examples

View source: R/Correlations.R

Description

Calculates Sperman's rank correlations. The function is a wrapper to cor().

Usage

1

Arguments

data

matrix or data.frame

...

ellipsis, arguments are passed down to cor()

Value

matrix

See Also

cor, Kendall

Examples

1
2
3
S <- equicorr(d = 3, rho = 0.5)
data <- rmnorm(1000, Sigma = S) 
Spearman(data) 

Example output

Loading required package: gsl
Loading required package: Matrix
Loading required package: mvtnorm
Loading required package: numDeriv
Loading required package: timeSeries
Loading required package: timeDate

Attaching package: 'QRM'

The following object is masked from 'package:base':

    lbeta

          [,1]     [,2]      [,3]
[1,] 1.0000000 0.499293 0.4996439
[2,] 0.4992930 1.000000 0.4855720
[3,] 0.4996439 0.485572 1.0000000

QRM documentation built on April 14, 2020, 6:49 p.m.