dcor {dccpp}R Documentation

Distance Correlation

Description

Distance Correlation

Usage

dcor(x,y)

Arguments

x

numeric vector

y

numeric vector

Value

Returns a numeric value: the distance correlation between x and y.

Examples

## Not run: 

set.seed(1)
x < -rnorm(1000)
y < -x ^ 2

dcor(x, y) # dcor shows dependence between x and y
cor(x, y) # cor does not detect any depencence due to nonlinearity


## End(Not run)

[Package dccpp version 0.1.0 Index]