Get Quantile for Kolmogorov-Smirnov test's critical value

114 views Asked by At

I am teaching basic statistics, and I have to show step by step how a Kolmogorov-Smirnov test is performed. Therefore, I cannot simply do it with one function, like:

ks.test(data, distribution)

So, I need a quantile function to get the critical value for the test statistic (d) distribution. Does anyone know if such a function exists?

1

There are 1 answers

0
uke On

I am citing the wiki article on the Kolmogorov-Smirnov test:

Fast and accurate algorithms to compute the cdf Pr [...] or its complement for arbitrary n n and x x, are available from:

Likely you will find something to calculate a cumulative density function in there. See the reference manual on CRAN.