R package IndepTest 0.2.2 implements weighted Kozachenko-Leonenko entropy estimation and nonparametric independence tests, including MINT tests and a linear…
IndepTest is an R package for nonparametric independence testing based on entropy estimation. It implements the weighted Kozachenko-Leonenko entropy estimator and independence tests built on it, as described in Berrett, Samworth and Yuan (2018).
The package also includes a goodness-of-fit test for a linear model, which tests whether the errors are independent of the covariates. It depends on FNN and mvtnorm and is licensed under GPL.
| Version | 0.2.0 |
|---|---|
| Date | 2018-08-23 |
| License | GPL |
| Depends | FNN, mvtnorm |
| Imports | Rdpack, RdMacros, Rdpack |
| NeedsCompilation | no |
| Repository | CRAN |
It calculates the (weighted) Kozachenko-Leonenko entropy estimator based on the k-nearest neighbour distances of the sample.
It performs an independence test without knowledge of either marginal distribution using permutations and a data-driven choice of k.
It performs a goodness-of-fit test of a linear model by testing whether the errors are independent of the covariates.
It calculates a weight vector with minimum L2 norm subject to the linear and sum-to-one constraints for the weighted Kozachenko-Leonenko estimator.