RcppKgCov | R Documentation |
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.
RcppKgCov(x, y, sigma)
x |
data |
y |
label of data or univariate response variable |
sigma |
kernel standard deviation |
RcppKgCov
compute kernel Gini distance covariance statistics for data.
It is Rcpp version of KgCov.
RcppKgCov
returns the sample Kernel Gini distance covariance
gCov
gCor
dCor
n=100 x<-runif(n) y<-c(rep(1,n/2),rep(2,n/2)) RcppKgCov(x, y, sigma=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.