Skip to contents

Takes a sample size and a confidence level and computes the corresponding critical value basing on the kolmogorov-smirnov test

Usage

critical.value.ks.test(n, conf, alternative = "two.sided");

Arguments

n

The sample size

conf

The confidence level

alternative

Indicates the alternative hypothesis and must be one of "two.sided"(default), "one-sided".

Value

The corresponding critical value

Author

Ying Wu

Examples

critical.value.ks.test(10, 0.95);
#> [1] 0.409249
critical.value.ks.test(100, 0.95, alternative = "one-sided");
#> [1] 0.1223849