Skip to content

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

v2.0.2 · Jul 29, 2024 · GPL (>= 2.0)

Description

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.

Downloads

359

Last 30 days

10658th

932

Last 90 days

4.1K

Last year

Trend: +17.3% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Dimitrina", "S."),
                      family = "Dimitrova",
                      role = c("aut", "cre"),
                      email = "D.Dimitrova@city.ac.uk"),
               person(given = "Yun",
                      family = "Jia",
                      role = "aut",
                      email = "yunjia2019@gmail.com"),
               person(given = c("Vladimir", "K."),
                      family = "Kaishev",
                      role = "aut",
                      email = "Vladimir.Kaishev.1@city.ac.uk"),
               person(given = "Senren",
                      family = "Tan",
                      role = "aut",
                      email = "raymondtsrtsr@outlook.com"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Dimitrina", "S."),
                      family = "Dimitrova",
                      role = c("aut", "cre"),
                      email = "D.Dimitrova@city.ac.uk"),
               person(given = "Yun",
                      family = "Jia",
                      role = "aut",
                      email = "yunjia2019@gmail.com"),
               person(given = c("Vladimir", "K."),
                      family = "Kaishev",
                      role = "aut",
                      email = "Vladimir.Kaishev.1@city.ac.uk"),
               person(given = "Senren",
                      family = "Tan",
                      role = "aut",
                      email = "raymondtsrtsr@outlook.com"))
as necessary.

Additional Issues

linux-arm64 Details →

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Dimitrina", "S."),
                      family = "Dimitrova",
                      role = c
...[truncated]...
                     email = "Vladimir.Kaishev.1@city.ac.uk"),
               person(given = "Senren",
                      family = "Tan",
                      role = "aut",
                      email = "raymondtsrtsr@outlook.com"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = c("Dimitrina", "S."),
                      family = "Dimitrova",
                      role = c
...[truncated]...
                     email = "Vladimir.Kaishev.1@city.ac.uk"),
               person(given = "Senren",
                      family = "Tan",
                      role = "aut",
                      email = "raymondtsrtsr@outlook.com"))
as necessary.

Dependency Network

Dependencies Reverse dependencies Rcpp MASS dgof KSgeneral

Version History

new 2.0.2 Mar 10, 2026
updated 2.0.2 ← 2.0.1 diff Jul 28, 2024
updated 2.0.1 ← 2.0.0 diff Jul 25, 2024
updated 2.0.0 ← 1.1.3 diff May 20, 2024
updated 1.1.3 ← 1.1.2 diff Mar 14, 2024
updated 1.1.2 ← 1.1.1 diff Jul 9, 2023
updated 1.1.1 ← 1.1.0 diff Mar 19, 2022
updated 1.1.0 ← 1.0.0 diff Dec 4, 2021
updated 1.0.0 ← 0.1.2 diff Oct 1, 2020
updated 0.1.2 ← 0.1.1 diff Feb 10, 2020
updated 0.1.1 ← 0.1.0 diff May 13, 2018
new 0.1.0 Jan 7, 2018