RcppgCov: Gini Distance Covariance Statistics

Description Usage Arguments Details Value See Also Examples

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

1
  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

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

GiniDistance documentation built on June 28, 2019, 5:03 p.m.