Package: KSgeneral 2.1.0

KSgeneral: Computing P-Values of the One-Sample K-S Test and the Two-Sample K-S and Kuiper Tests for (Dis)Continuous Null Distribution

Contains functions to compute p-values for the one-sample and two-sample Kolmogorov-Smirnov (KS) tests and the two-sample Kuiper test for any fixed critical level and arbitrary (possibly very large) sample sizes. For the one-sample KS test, this package implements a novel, accurate and efficient method named Exact-KS-FFT, which allows the pre-specified cumulative distribution function under the null hypothesis to be continuous, purely discrete or mixed. In the two-sample case, it is assumed that both samples come from an unspecified (unknown) continuous, purely discrete or mixed distribution, i.e. ties (repeated observations) are allowed, and exact p-values of the KS and the Kuiper tests are computed. Note, the two-sample Kuiper test is often used when data samples are on the line or on the circle (circular data). To cite this package in publication: (for the use of the one-sample KS test) Dimitrina S. Dimitrova, Vladimir K. Kaishev, and Senren Tan. Computing the Kolmogorov-Smirnov Distribution When the Underlying CDF is Purely Discrete, Mixed, or Continuous. Journal of Statistical Software. 2020; 95(10): 1--42. <doi:10.18637/jss.v095.i10>. (for the use of the two-sample KS and Kuiper tests) Dimitrina S. Dimitrova, Yun Jia and Vladimir K. Kaishev (2024). The R functions KS2sample and Kuiper2sample: Efficient Exact Calculation of P-values of the Two-sample Kolmogorov-Smirnov and Kuiper Tests. submitted.

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

KSgeneral_2.1.0.tar.gz
KSgeneral_2.1.0.zip(r-4.7-x86_64)KSgeneral_2.1.0.zip(r-4.7-arm64)KSgeneral_2.1.0.zip(r-4.6-x86_64)KSgeneral_2.1.0.zip(r-4.6-arm64)KSgeneral_2.1.0.zip(r-4.5-x86_64)
KSgeneral_2.1.0.tgz(r-4.6-x86_64)KSgeneral_2.1.0.tgz(r-4.6-arm64)KSgeneral_2.1.0.tgz(r-4.5-x86_64)KSgeneral_2.1.0.tgz(r-4.5-arm64)
KSgeneral_2.1.0.tar.gz(r-4.7-arm64)KSgeneral_2.1.0.tar.gz(r-4.7-x86_64)KSgeneral_2.1.0.tar.gz(r-4.6-arm64)KSgeneral_2.1.0.tar.gz(r-4.6-x86_64)
KSgeneral_2.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
KSgeneral/json (API)

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

Bug tracker:https://github.com/d-dimitrova/ksgeneral/issues

Uses libs:
  • fftw3– Library for computing Fast Fourier Transforms
  • c++– GNU Standard C++ Library v3
Datasets:
  • Population_Data - The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010

On CRAN:

Conda:

fftw3cpp

5.10 score 5 stars 1 packages 21 scripts 455 downloads 15 exports 3 dependencies

Last updated from:7a2acf5bba. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK105
linux-devel-x86_64OK114
source / vignettesOK196
linux-release-arm64OK129
linux-release-x86_64OK105
macos-release-arm64OK115
macos-release-x86_64OK192
macos-oldrel-arm64OK82
macos-oldrel-x86_64OK291
windows-devel-arm64OK235
windows-devel-x86_64OK135
windows-release-arm64OK209
windows-release-x86_64OK108
windows-oldrel-x86_64OK110
wasm-releaseOK106

Exports:cont_ks_c_cdfcont_ks_cdfcont_ks_testdisc_ks_c_cdfdisc_ks_testks_c_cdfks_c_cdf_RcppKS2sampleKS2sample_c_RcppKS2sample_RcppKuiper2sampleKuiper2sample_c_RcppKuiper2sample_Rcppmixed_ks_c_cdfmixed_ks_test

Dependencies:dgofMASSRcpp

Readme and manuals

Help Manual

Help pageTopics
Computing P-Values of the One-Sample K-S Test and the Two-Sample K-S and Kuiper Tests for (Dis)Continuous Null DistributionKSgeneral-package
Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuouscont_ks_c_cdf
Computes the cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuouscont_ks_cdf
Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is continuouscont_ks_test
Computes the complementary cumulative distribution function of the two-sided Komogorov-Smirnov statistic when the cdf under the null hypothesis is purely discretedisc_ks_c_cdf
Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is purely discretedisc_ks_test
Exact-KS-FFT Complementary CDF from Pre-computed Boundariesks_c_cdf
Computes the p-value for a (weighted) two-sample Kolmogorov-Smirnov test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)KS2sample
R function calling the C++ routines that compute the complementary p-value for a (weighted) two-sample Kolmogorov-Smirnov (KS) test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)KS2sample_c_Rcpp
R function calling the C++ routines that compute the p-value for a (weighted) two-sample Kolmogorov-Smirnov (KS) test, given an arbitrary positive weight function and arbitrary data samples with possibly repeated observations (i.e. ties)KS2sample_Rcpp
Deprecated Functions in Package 'KSgeneral'KSgeneral-deprecated ks_c_cdf_Rcpp
Computes the p-value for a two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)Kuiper2sample
R function calling the C++ routines that compute the complementary p-value for a (unweighted) two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)Kuiper2sample_c_Rcpp
R function calling the C++ routines that compute the p-value for a (unweighted) two-sample Kuiper test, given arbitrary data samples on the real line or on the circle with possibly repeated observations (i.e. ties)Kuiper2sample_Rcpp
Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is mixedmixed_ks_c_cdf
Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is mixedmixed_ks_test
The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010Population_Data