RcppgCor {GiniDistance}R Documentation

Gini Distance Correlation Statistics

Description

Computes Gini distance correlation statistics, in which Xs are quantitative, Y are categorical, alpha is exponent on the Euclidean distance and returns the measures of dependence.

Usage

  RcppgCor(x, y, alpha)

Arguments

x

data

y

label of data or univariate response variable

alpha

exponent on Euclidean distance, in (0,2]

Details

RcppgCor compute Gini distance correlation statistic between x and y. It is a Rcpp version of gCor.

Value

RcppgCor returns the sample Gini distance correlation

See Also

RcppKgCov RcppKgCor RcppgCov

Examples

  x<-iris[,1:4]
  y<-unclass(iris[,5])
  RcppgCor(x, y, alpha=2)

[Package GiniDistance version 0.1.1 Index]