Learn R Programming

independence (version 1.0.1)

Fast Rank-Based Independence Testing

Description

Performs three ranking-based nonparametric tests for the independence of two continuous variables: (1) the classical Hoeffding's D test; (2) a refined variant of it, named R; (3) the Bergsma-Dassios T* sign covariance. The first test is consistent assuming an absolutely continuous bivariate distribution, i.e., the population coefficient D=0 iff the variables are independent. The latter two are consistent under no restriction on the distribution. All three statistics are computed in time O(n log n) given n iid paired samples. The computation of R and T* uses a new algorithm, following work of Even-Zohar and Leng (2019), see , .

Copy Link

Version

Install

install.packages('independence')

Monthly Downloads

27

Version

1.0.1

License

GPL (>= 3)

Maintainer

Chaim Even-Zohar

Last Published

November 5th, 2020

Functions in independence (1.0.1)

hoeffding.refined.test

The refined Hoeffding independence test
independence

independence
.calc.hoeffding

Compute Hoeffding's D statistic
.calc.taustar

Compute the Tau* statistic
max_hoeffding

Maximum data size for Hoeffding's statistics
tau.star.test

The Bergsma--Dassios tau* independence test
.generic.rank.test

Generic rank test for paired samples
relative.order

The relative order of two vectors
.calc.refined

Compute the refined Hoeffding statistic
hoeffding.D.test

Hoeffding's D independence test
max_taustar

Maximum data size for the T* statistic