RcppgCor: Gini Distance Correlation Statistics

Description Usage Arguments Details Value See Also Examples

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

1
  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

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

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