Sample.
A continuous distribution function, or a second sample.
Optionaloptions: KsTestOptions
See KsTestOptions.
There is also a formula form for two samples, ksTest("y ~ g", data, options) (next overload).
Two-sample Kolmogorov-Smirnov test from a formula and a data frame. As R's ks.test(formula, data):
"y ~ g" compares the two levels of g (the first level is x). Only the variables of the formula count: the
rows where one of them is missing are dropped.
"y ~ g".
The data frame: an object of columns (null or NaN for a missing value).
Optionaloptions: KsTestOptions
See KsTestOptions.
Kolmogorov-Smirnov test. Equivalent to R's
ks.test(). Takes a distribution function given as a function (for example(q) => pnorm(q)) or a second sample.NaNvalues are dropped.As R,
warningshas "ties should not be present for the one-sample Kolmogorov-Smirnov test" for one sample with ties, and "p-value will be approximate in the presence of ties" for two samples with ties andexact: false(or m n >= 10000).