Package: KMD 0.1.0

KMD: Kernel Measure of Multi-Sample Dissimilarity

Implementations of the kernel measure of multi-sample dissimilarity (KMD) between several samples using K-nearest neighbor graphs and minimum spanning trees. The KMD measures the dissimilarity between multiple samples, based on the observations from them. It converges to the population quantity (depending on the kernel) which is between 0 and 1. A small value indicates the multiple samples are from the same distribution, and a large value indicates the corresponding distributions are different. The population quantity is 0 if and only if all distributions are the same, and 1 if and only if all distributions are mutually singular. The package also implements the tests based on KMD for H0: the M distributions are equal against H1: not all the distributions are equal. Both permutation test and asymptotic test are available. These tests are consistent against all alternatives where at least two samples have different distributions. For more details on KMD and the associated tests, see Huang, Z. and B. Sen (2022) <arxiv:2210.00634>.

Authors:Zhen Huang [aut, cre]

KMD_0.1.0.tar.gz
KMD_0.1.0.zip(r-4.5)KMD_0.1.0.zip(r-4.4)KMD_0.1.0.zip(r-4.3)
KMD_0.1.0.tgz(r-4.4-any)KMD_0.1.0.tgz(r-4.3-any)
KMD_0.1.0.tar.gz(r-4.5-noble)KMD_0.1.0.tar.gz(r-4.4-noble)
KMD_0.1.0.tgz(r-4.4-emscripten)KMD_0.1.0.tgz(r-4.3-emscripten)
KMD.pdf |KMD.html
KMD/json (API)

# Install 'KMD' in R:
install.packages('KMD', repos = c('https://zh2395.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/zh2395/kmd/issues

On CRAN:

2.70 score 2 scripts 216 downloads 2 exports 19 dependencies

Last updated 2 years agofrom:050ee906b0. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:KMDKMD_test

Dependencies:bootclicpp11data.tableglueigraphlatticelifecyclemagrittrMatrixmlpackpkgconfigproxyRANNRcppRcppArmadilloRcppEnsmallenrlangvctrs