KSTestCriticalValue: A simple wrapper to provide the p-value for the K-S one- and two-sample test.
Description
`KSTestCriticalValue` calculates the p-value for the given critical value,
based on the respective function from the stats package.
Usage
KSTestCriticalValue(criticalValue, n1, n2)
Value
The output is given as a real number equal to the p-value for the one- or two-sample
K-S test.
Arguments
criticalValue
Critical value for the one- or two-sample K-S test.
n1
Size of the first sample.
n2
Size of the second sample (or NA for the case of the one-sample test).
Details
The function calculates the p-value for the one- and two-sample Kolmogorov-Smirnov test
using the respective function from the stats package.
The necessary information is the critical value given by criticalValue parameter,
and the sizes of one or two samples (parameters n1, n2, respectively).
The output is used in one of the epistemic bootstrap methods if the one- or two-sample K-S test is applied.