ksTest# swordfish.function.ksTest()# Conduct Kolmogorov-Smirnov test on X and Y. ksValue: Kolmogorov-Smirnov statistic pValue: p-value of the test D: D-stat method: “Two-sample Kolmogorov-Smirnov test” Parameters: X (Constant) – A numeric vector indicating the sample for the test. Y (Constant) – A numeric vector indicating the sample for the test.