RcppgCor | R Documentation |
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.
RcppgCor(x, y, alpha)
x |
data |
y |
label of data or univariate response variable |
alpha |
exponent on Euclidean distance, in (0,2] |
RcppgCor
compute Gini distance correlation statistic between x
and y
.
It is a Rcpp version of gCor.
RcppgCor
returns the sample Gini distance correlation
RcppKgCov
RcppKgCor
RcppgCov
x<-iris[,1:4] y<-unclass(iris[,5]) RcppgCor(x, y, alpha=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.