Package: HausdorffGoF 0.3.1

HausdorffGoF: One- And Two-Sample Hausdorff Goodness-of-Fit Test

Computes the test statistic and p-values of the one-sample and two-sample Hausdorff (H) goodness-of-fit tests. The H statistic measures the Hausdorff distance under the Chebyshev (l-infinity) metric, between the two cumulative distribution functions (cdfs) underlying the corresponding one-sample and two-sample null hypothesis. It coincides to the side length of the largest axis-aligned square (hypercube) that can be inscribed between the two cdfs. The following cases are covered: (i) one-sample, univariate; (ii) two-sample univariate; and (iii) two-sample bivariate. Exact one-sample p-values are computed in O(n^2 log n) time via the 'Exact-KS-FFT' method of Dimitrova, Kaishev, and Tan (2020) <doi:10.18637/jss.v095.i10>; two-sample p-values are obtained by permutation. A key advantage of the H test is that its sensitivity can be directed towards the left tail, body, or right tail of the distribution by tuning a scale parameter sigma, and therefore maximizing its power which as shown numerically is significantly higher than the power of the classical tests such as the Kolmogorov-Smirnov, Cramer-von Mises, and Anderson-Darling test, especially when the right tail of the distribution is targeted. The sensitivity of the test (left tail, body, or right tail) is governed by two parameters psi1 and psi2, whose values needs to be input. Then the optimal value of the scale parameter sigma is automatically computed.

Authors:Dimitrina S. Dimitrova [aut], Yun Jia [aut, cre], Vladimir K. Kaishev [aut]

HausdorffGoF_0.3.1.tar.gz
HausdorffGoF_0.3.1.zip(r-4.7-x86_64)HausdorffGoF_0.3.1.zip(r-4.7-arm64)HausdorffGoF_0.3.1.zip(r-4.6-x86_64)HausdorffGoF_0.3.1.zip(r-4.6-arm64)HausdorffGoF_0.3.1.zip(r-4.5-x86_64)
HausdorffGoF_0.3.1.tgz(r-4.6-x86_64)HausdorffGoF_0.3.1.tgz(r-4.6-arm64)HausdorffGoF_0.3.1.tgz(r-4.5-x86_64)HausdorffGoF_0.3.1.tgz(r-4.5-arm64)
HausdorffGoF_0.3.1.tar.gz(r-4.7-arm64)HausdorffGoF_0.3.1.tar.gz(r-4.7-x86_64)HausdorffGoF_0.3.1.tar.gz(r-4.6-arm64)HausdorffGoF_0.3.1.tar.gz(r-4.6-x86_64)
HausdorffGoF_0.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
HausdorffGoF/json (API)

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

Bug tracker:https://github.com/fakecloudsjy/hausdorffgof/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.48 score 1 scripts 266 downloads 21 exports 5 dependencies

Last updated from:083e41ee53. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK119
linux-devel-x86_64OK182
source / vignettesOK229
linux-release-arm64OK123
linux-release-x86_64OK135
macos-release-arm64OK170
macos-release-x86_64OK352
macos-oldrel-arm64OK197
macos-oldrel-x86_64OK349
windows-devel-arm64OK354
windows-devel-x86_64OK157
windows-release-arm64OK385
windows-release-x86_64OK115
windows-oldrel-x86_64OK111
wasm-releaseOK135

Exports:distributionH_stat_1s_1dH_stat_2s_1d_pH_stat_2s_1d_trH_stat_2s_2dH_test_1s_1dH_test_2s_1dH_test_2s_2dH_test_c_cdfHausdorff_statHausdorff_stat.functionHausdorff_stat.listHausdorff_stat.matrixHausdorff_stat.NullDistHausdorff_stat.numericHausdorff_testHausdorff_test.functionHausdorff_test.listHausdorff_test.matrixHausdorff_test.NullDistHausdorff_test.numeric

Dependencies:dgofKSgeneralMASSRcppRcppEigen