The function calculates the complete combinatorial of the supplied vectors,
i.e., the share of all pairwise differences x - y that are less than or
equal to zero. Instead of forming all length(x) * length(y) differences,
y is sorted and findInterval() counts the elements of y below each
element of x, which keeps memory use linear. The input vectors must
be numeric, non-empty, and free of missing values, but can be of different
lengths.
Value
A list with the following components:
methodThe name of the teststatisticThe test statisticmeansThe means of the two input vectors
References
Poe G. L., Giraud, K. L. & Loomis, J. B., 2005, Computational methods for measuring the difference of empirical distributions, American Journal of Agricultural Economics, 87:353-365