{
  "_id": "6a28fdeb732311cd8758ff92",
  "Package": "KSgeneral",
  "Type": "Package",
  "Version": "2.0.2",
  "Title": "Computing P-Values of the One-Sample K-S Test and the Two-Sample\nK-S and Kuiper Tests for (Dis)Continuous Null Distribution",
  "Author": "Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>, Yun Jia\n<yunjia2019@gmail.com>, Vladimir K. Kaishev\n<Vladimir.Kaishev.1@city.ac.uk>, Senren Tan\n<raymondtsrtsr@outlook.com>",
  "Maintainer": "Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>",
  "SystemRequirements": "fftw3 (>=3.3.4)",
  "Copyright": "Copyright holders of FFTW3: Copyright (c) 2003, 2007-11\nMatteo Frigo; Copyright (c) 2003, 2007-11 Massachusetts\nInstitute of Technology",
  "Description": "Contains functions to compute p-values for the one-sample\nand two-sample Kolmogorov-Smirnov (KS) tests and the two-sample\nKuiper test for any fixed critical level and arbitrary\n(possibly very large) sample sizes. For the one-sample KS test,\nthis package implements a novel, accurate and efficient method\nnamed Exact-KS-FFT, which allows the pre-specified cumulative\ndistribution function under the null hypothesis to be\ncontinuous, purely discrete or mixed. In the two-sample case,\nit is assumed that both samples come from an unspecified\n(unknown) continuous, purely discrete or mixed distribution,\ni.e. ties (repeated observations) are allowed, and exact\np-values of the KS and the Kuiper tests are computed. Note, the\ntwo-sample Kuiper test is often used when data samples are on\nthe line or on the circle (circular data). To cite this package\nin publication: (for the use of the one-sample KS test)\nDimitrina S. Dimitrova, Vladimir K. Kaishev, and Senren Tan.\nComputing the Kolmogorov-Smirnov Distribution When the\nUnderlying CDF is Purely Discrete, Mixed, or Continuous.\nJournal of Statistical Software. 2020; 95(10): 1--42.\n<doi:10.18637/jss.v095.i10>. (for the use of the two-sample KS\nand Kuiper tests) Dimitrina S. Dimitrova, Yun Jia and Vladimir\nK. Kaishev (2024). The R functions KS2sample and Kuiper2sample:\nEfficient Exact Calculation of P-values of the Two-sample\nKolmogorov-Smirnov and Kuiper Tests. submitted.",
  "License": "GPL (>= 2.0)",
  "URL": "https://github.com/d-dimitrova/KSgeneral",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-08 06:27:59 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "libfftw3-dev",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-07-30 02:45:19 UTC",
  "RemoteUrl": "https://github.com/cran/KSgeneral",
  "RemoteRef": "HEAD",
  "RemoteSha": "561412096f08a941a07af7c5cb2f94eddb9f2a9b",
  "MD5sum": "7ac87f36f8579cf58ed72547b0ec695a",
  "_user": "cran",
  "_type": "src",
  "_file": "KSgeneral_2.0.2.tar.gz",
  "_fileid": "35a572aea8b0bef9d3e61ca31c1fc754cb0a6347807981b77cada5c33ac18f1a",
  "_filesize": 468434,
  "_sha256": "35a572aea8b0bef9d3e61ca31c1fc754cb0a6347807981b77cada5c33ac18f1a",
  "_created": "2026-06-08T06:27:59.000Z",
  "_published": "2026-06-10T06:02:19.471Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80491999370,
      "time": 127,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80491999601,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7473043333"
    },
    {
      "job": 80491999339,
      "time": 124,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80491999874,
      "time": 164,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7473053015"
    },
    {
      "job": 80491999386,
      "time": 276,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473014984"
    },
    {
      "job": 80491999495,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7473042185"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27119874382",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/KSgeneral",
  "_commit": {
    "id": "561412096f08a941a07af7c5cb2f94eddb9f2a9b",
    "author": "Dimitrina S. Dimitrova <D.Dimitrova@city.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.0.2\n",
    "time": 1722307519
  },
  "_maintainer": {
    "name": "Dimitrina S. Dimitrova",
    "email": "d.dimitrova@city.ac.uk",
    "login": "d-dimitrova",
    "uuid": 153292482
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.12",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "dgof",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 2,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "d-dimitrova",
      "count": 4,
      "uuid": 153292482
    },
    {
      "user": "raymondtsr",
      "count": 4,
      "uuid": 32581436
    },
    {
      "user": "raymondtsrtsr",
      "count": 3,
      "uuid": 43141317
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 342,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/KSgeneral"
  },
  "_devurl": "https://github.com/d-dimitrova/ksgeneral",
  "_searchresults": 19,
  "_topics": [
    "fftw3",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/KSgeneral.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/d-dimitrova/ksgeneral",
  "_realowner": "d-dimitrova",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-01-08"
    },
    {
      "version": "0.1.1",
      "date": "2018-05-14"
    },
    {
      "version": "0.1.2",
      "date": "2020-02-11"
    },
    {
      "version": "1.0.0",
      "date": "2020-10-02"
    },
    {
      "version": "1.1.0",
      "date": "2021-12-05"
    },
    {
      "version": "1.1.1",
      "date": "2022-03-20"
    },
    {
      "version": "1.1.2",
      "date": "2023-07-10"
    },
    {
      "version": "1.1.3",
      "date": "2024-03-15"
    },
    {
      "version": "2.0.0",
      "date": "2024-05-21"
    },
    {
      "version": "2.0.1",
      "date": "2024-07-25"
    },
    {
      "version": "2.0.2",
      "date": "2024-07-29"
    }
  ],
  "_exports": [
    "cont_ks_c_cdf",
    "cont_ks_cdf",
    "cont_ks_test",
    "disc_ks_c_cdf",
    "disc_ks_test",
    "ks_c_cdf_Rcpp",
    "KS2sample",
    "KS2sample_c_Rcpp",
    "KS2sample_Rcpp",
    "Kuiper2sample",
    "Kuiper2sample_c_Rcpp",
    "Kuiper2sample_Rcpp",
    "mixed_ks_c_cdf",
    "mixed_ks_test"
  ],
  "_datasets": [
    {
      "name": "Population_Data",
      "title": "The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010",
      "object": "Population_Data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Proportion"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ksgeneral-package",
      "title": "Computing P-Values of the One-Sample K-S Test and the Two-Sample K-S and Kuiper Tests for (Dis)Continuous Null Distribution",
      "topics": [
        "KSgeneral-package"
      ]
    },
    {
      "page": "cont_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_c_cdf"
      ]
    },
    {
      "page": "cont_ks_distribution",
      "title": "Computes the cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_cdf"
      ]
    },
    {
      "page": "cont_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is continuous",
      "topics": [
        "cont_ks_test"
      ]
    },
    {
      "page": "disc_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Komogorov-Smirnov statistic when the cdf under the null hypothesis is purely discrete",
      "topics": [
        "disc_ks_c_cdf"
      ]
    },
    {
      "page": "disc_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is purely discrete",
      "topics": [
        "disc_ks_test"
      ]
    },
    {
      "page": "ks_c_cdf_Rcpp",
      "title": "R function calling directly the C++ routines that compute the complementary cumulative distribution function of the two-sided (or one-sided, as a special case) Kolmogorov-Smirnov statistic, when the cdf under the null hypothesis is arbitrary (i.e., purely discrete, mixed or continuous)",
      "topics": [
        "ks_c_cdf_Rcpp"
      ]
    },
    {
      "page": "KS2sample",
      "title": "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)",
      "topics": [
        "KS2sample"
      ]
    },
    {
      "page": "KS2sample_c_Rcpp",
      "title": "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)",
      "topics": [
        "KS2sample_c_Rcpp"
      ]
    },
    {
      "page": "KS2sample_Rcpp",
      "title": "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)",
      "topics": [
        "KS2sample_Rcpp"
      ]
    },
    {
      "page": "Kuiper2sample",
      "title": "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)",
      "topics": [
        "Kuiper2sample"
      ]
    },
    {
      "page": "Kuiper2sample_c_Rcpp",
      "title": "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)",
      "topics": [
        "Kuiper2sample_c_Rcpp"
      ]
    },
    {
      "page": "Kuiper2sample_Rcpp",
      "title": "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)",
      "topics": [
        "Kuiper2sample_Rcpp"
      ]
    },
    {
      "page": "mixed_ks_c_cdf",
      "title": "Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is mixed",
      "topics": [
        "mixed_ks_c_cdf"
      ]
    },
    {
      "page": "mixed_ks_test",
      "title": "Computes the p-value for a one-sample two-sided Kolmogorov-Smirnov test when the cdf under the null hypothesis is mixed",
      "topics": [
        "mixed_ks_test"
      ]
    },
    {
      "page": "Population_Data",
      "title": "The proportion of inhabitants living within a 200 kilometer wide costal strip in 232 countries in the year 2010",
      "topics": [
        "Population_Data"
      ]
    }
  ],
  "_rundeps": [
    "dgof",
    "MASS",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libfftw3",
      "package": "libfftw3-double3",
      "headers": "libfftw3-dev",
      "source": "fftw3",
      "version": "3.3.10-1ubuntu3",
      "name": "fftw3",
      "homepage": "https://fftw.org",
      "description": "Library for computing Fast Fourier Transforms - Double precision"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 2.357934847000454,
  "_indexed": false,
  "_nocasepkg": "ksgeneral",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-06-08T06:31:05.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "561412096f08a941a07af7c5cb2f94eddb9f2a9b",
      "fileid": "92ea4d8daae45f83fecfea8514dbb18af3a845cad7fe780ddcc07388ba29916d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27119874382"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-06-08T06:31:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "561412096f08a941a07af7c5cb2f94eddb9f2a9b",
      "fileid": "294625f26a94be563850a41194d22b286074ba533d33971f209141d2a3e87a31",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27119874382"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.2",
      "date": "2026-06-08T06:31:11.000Z",
      "arch": "emscripten",
      "commit": "561412096f08a941a07af7c5cb2f94eddb9f2a9b",
      "fileid": "1640ef17c34f98ef0a23c6cc798f5f3346b9d1e3cfee5c2eaf0142bcf177ec17",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27119874382"
    }
  ]
}