RcppgCov {GiniDistance}R Documentation

Gini Distance Covariance Statistics

Description

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

Usage

  RcppgCov(x, y, alpha)

Arguments

x

data

y

label of data or univariate response variable

alpha

exponent on Euclidean distance, in (0,2]

Details

RcppgCov compute Gini distance covariance statistics. It is Rcpp version of gCov.

Value

RcppgCov returns the sample Gini distance covariance

See Also

RcppgCor RcppKgCov RcppKgCor

Examples

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

[Package GiniDistance version 0.1.1 Index]