View source: R/KSTestCriticalValue.R
KSTestCriticalValue | R Documentation |
'KSTestCriticalValue' calculates the p-value for the given critical value,
based on the respective function from the stats
package.
KSTestCriticalValue(criticalValue, n1, n2)
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). |
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.
The output is given as a real number equal to the p-value for the one- or two-sample K-S test.
# find p-value for the critical value 0.3 and two samples of size 10
KSTestCriticalValue(0.3,10,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.