cKolSmirn: Computes a critical value for the Kolmogorov-Smirnov J distribution.
Description
This function uses pSmirnov2x from the base stats package to compute the critical value for the Kolmogorov-Smirnov J distribution at (or typically in the "Exact" case, close to) the given alpha level. The program is reasonably quick for large data, well after the asymptotic approximation suffices, so Monte Carlo methods are not included.
Usage
cKolSmirn(alpha, m, n, method=NA, n.mc=10000)
Arguments
Value
Returns a list with "NSM3Ch5c" class containing the following components:mnumber of observations in the first data group (X)nnumber of observations in the second data group (Y)cutoff.Uupper tail cutoff at or below user-specified alphatrue.alpha.Utrue alpha level corresponding to cutoff.U (if method="Exact")
References
This function uses the source code ks.c from the stats package by: R Core Team (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.
##Hollander-Wolfe-Chicken Example 5.4 Effect of Feedback on Salivation Rate:cKolSmirn(0.0524,10,10,"Exact")
##orcKolSmirn(0.06,10,10,"Exact")
##LSAcKolSmirn(0.0551,10,10,"Asymptotic")