Description Usage Arguments Value Examples
This is the function that used to calculate the robust copula dependence (RCD)
between two random variables x
and y
with the KNN estimator. Note that the length of
x
and y
should be the same.
1 | rcdknn(x, y, k, cpp = "parallel")
|
x |
The sampled data, a vector, for the first random variable |
y |
The sampled data, a vector, for the second random variable |
k |
The parameter K in KNN that need to be used in the density estimation. This parameter could be missing and a deault value will be applied. |
cpp |
The ways to calculate the distance matrix. "none" means using R distance function, "serial" means using serial version of Rcpp, "parallel" means using parallel version of Rcpp. |
The RCD of x
and y
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.