testforDEP: An R Package for Modern Distribution-free Tests and Visualization Tools for Independence

This article introduces testforDEP, a portmanteau R package implementing for the first time several modern tests and visualization tools for independence between two variables. While classical tests for independence are in the base R packages, there have been several recently developed tests for independence that are not available in R. This new package combines the classical tests including Pearson’s product moment correlation coefficient method, Kendall’s τ rank correlation coefficient method and Spearman’s ρ rank correlation coefficient method with modern tests consisting of an empirical likelihood based test, a density-based empirical likelihood ratio test, Kallenberg data driven test, maximal information coefficient test, Hoeffding’s independence test and the continuous analysis of variance test. For two input vectors of observations, the function testforDEP provides a common interface for each of the tests and returns test statistics, corresponding p values and bootstrap confidence intervals as output. The function AUK provides an interface to visualize Kendall plots and computes the area under the Kendall plot similar to computing the area under a receiver operating characteristic (ROC) curve.

Jeffrey C. Miecznikowski , En-shuo Hsu , Yanhua Chen , Albert Vexler
2018-12-08

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at RJ-2018-057.zip

CRAN packages used

testforDEP, Hmisc, minerva

CRAN Task Views implied by cited packages

Bayesian, ClinicalTrials, Econometrics, MissingData, Multivariate, OfficialStatistics, ReproducibleResearch, SocialSciences

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Miecznikowski, et al., "testforDEP: An R Package for Modern Distribution-free Tests and Visualization Tools for Independence", The R Journal, 2018

BibTeX citation

@article{RJ-2018-057,
  author = {Miecznikowski, Jeffrey C. and Hsu, En-shuo and Chen, Yanhua and Vexler, Albert},
  title = {testforDEP: An R Package for Modern Distribution-free Tests and Visualization Tools for Independence},
  journal = {The R Journal},
  year = {2018},
  note = {https://doi.org/10.32614/RJ-2018-057},
  doi = {10.32614/RJ-2018-057},
  volume = {10},
  issue = {2},
  issn = {2073-4859},
  pages = {282-295}
}