Calculates the two-sample Kolmogorov-Smirnov statistic comparing the treated and control distributions y. The result is intended to be used as a test statistic in a permutation test.
Usage
KS(y, tr, tl, ...)
Arguments
y
Response variable (vector)
tr
Treatment variable (vector)
tl
The level of treatment variable (e.g., "treated" or 1) that indicates treated observations
...
Additional arguments (included for compatibility but ignored)