RcppKgCov: Kernel Gini Distance Covariance Statistics

Description Usage Arguments Details Value See Also Examples

Description

Computes Kernel Gini distance covariance statistics, in which Xs are quantitative, Y are categorical, sigma is kernel standard deviation and return the kernel Gini mean difference.

Usage

1
  RcppKgCov(x, y, sigma)

Arguments

x

data

y

label of data or univariate response variable

sigma

kernel standard deviation

Details

RcppKgCov compute kernel Gini distance covariance statistics for data. It is Rcpp version of KgCov.

Value

RcppKgCov returns the sample Kernel Gini distance covariance

See Also

gCov gCor dCor

Examples

1
2
3
4
  n=100
  x<-runif(n)
  y<-c(rep(1,n/2),rep(2,n/2))
  RcppKgCov(x, y, sigma=1)

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