RcppKgCor {GiniDistance} | R Documentation |
Kernel Gini Distance Correlation Statistics
Description
Computes Kernel Gini distance correlation statistics, in which Xs are quantitative, Y are categorical, sigma is kernel standard deviation and return the kernel Gini mean difference.
Usage
RcppKgCor(x, y, sigma)
Arguments
x |
data |
y |
label of data or univariate response variable |
sigma |
kernel standard deviation |
Details
RcppKgCor
compute kernel Gini distance correlation statistics for data.
It is Rcpp version of KgCor.
Value
RcppKgCor
returns the sample Kernel Gini distance covariance
See Also
Examples
n=100
x<-runif(n)
y<-c(rep(1,n/2),rep(2,n/2))
RcppKgCor(x, y, sigma=1)
[Package GiniDistance version 0.1.1 Index]