Takes a sample size and a confidence level and computes the corresponding critical value basing on the kolmogorov-smirnov test
ks.test.critical.value(n, conf, alternative = "two.sided");
The sample size
The confidence level
Indicates the alternative hypothesis and must be one of "two.sided"(default), "one-sided".
The corresponding critical value
# NOT RUN { ks.test.critical.value(10, 0.95); ks.test.critical.value(100, 0.95, alternative = "one-sided"); # }
Run the code above in your browser using DataCamp Workspace