Learn R Programming

stops (version 1.9-1)

c_dependence: c-dependence calculates c-dependence as the aggregated distance correlation of each pair if nonidentical columns

Description

c-dependence calculates c-dependence as the aggregated distance correlation of each pair if nonidentical columns

Usage

c_dependence(confs, aggr = NULL, index = 1)

Value

a numeric value; dependence (aggregated distance correlation)

Arguments

confs

a numeric matrix or data frame

aggr

the aggregation function for configurations of more than two dimensions. Defaults to max.

index

exponent on Euclidean distance, in (0,2]

Examples

Run this code
x<-1:10
y<-2+3*x+rnorm(10)
confs<-cbind(x,y)
c_dependence(confs,1.5)

Run the code above in your browser using DataLab