https://cran.r-project.org/web/packages/weightedGCM/index.html
CRAN: Package weightedGCM
A conditional independence test that can be applied both to univariate and multivariate random variables. The test is based on a weighted form of the sample...
cranpackage