gauss.cor: Gauss Rank Correlation Estimator

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

Description

Compute the Gaussian rank correlation estimate

Usage

1
gauss.cor(x, y)

Arguments

x

a numeric vector; compulsory argument

y

a numeric vector; compulsory argument; x and y need to have the same length

Details

gauss.cor computes the Gaussian rank correlation estimate for x and y.

Note that gauss.cor only works for x and y being numeric vectors, unlike the classical correlation measures implemented in cor which can also be computed for matrices or data frames.

Value

Upon successful completion, the function returns the Gaussian rank correlation estimate.

Author(s)

Ulrich Bodenhofer rococo@bioinf.jku.at

References

http://www.bioinf.jku.at/software/rococo/

K. Boudt, J. Cornelissen and C. Croux (2012). The Gaussian rank correlation estimator: robustness properties. Stat. Comput. 22(2):471-483.

See Also

gauss.cor.test

Examples

1
2
3
4
5
6
7
## create data
f <- function(x) ifelse(x > 0.9, x - 0.9, ifelse(x < -0.9, x + 0.9, 0))
x <- rnorm(25)
y <- f(x) + rnorm(25, sd=0.1)

## compute correlation
gauss.cor(x, y)

Example output

[1] 0.5880938

rococo documentation built on May 2, 2019, 2:46 a.m.