KSgeneral: Computing P-Values of the K-S Test for (Dis)Continuous Null Distribution
Version 0.1.0

Computes a p-value of the one-sample two-sided (or one-sided, as a special case) Kolmogorov-Smirnov (KS) statistic, for any fixed critical level, and an arbitrary, possibly large sample size for a pre-specified purely discrete, mixed or continuous cumulative distribution function (cdf) under the null hypothesis. If a data sample is supplied, 'KSgeneral' computes the p-value corresponding to the value of the KS test statistic computed based on the user provided data sample. The package 'KSgeneral' implements a novel, accurate and efficient method named Exact-KS-FFT, expressing the p-value as a double-boundary non-crossing probability for a homogeneous Poisson process, which is then efficiently computed using Fast Fourier Transform (FFT). The package can also be used to compute and plot the complementary cdf of the KS statistic which is known to depend on the hypothesized distribution when the latter is discontinuous (i.e. purely discrete or mixed).

Getting started

Package details

AuthorDimitrina S. Dimitrova <[email protected]> Vladimir K. Kaishev <[email protected]> Senren Tan <[email protected]>
Date of publication2018-01-08 18:46:36 UTC
MaintainerSenren Tan <[email protected]>
LicenseGPL (>= 2.0)
URL https://github.com/raymondtsr/KSgeneral
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the KSgeneral package in your browser

Any scripts or data that you put into this service are public.

KSgeneral documentation built on Jan. 9, 2018, 1:06 a.m.