I would like to compare two 2D distributions statistically. Thus I would like to use the Peacock test (a 2D analogue of the Kolmogorov-Smirnov test). There is an R package called Peacock.test which claims to implement it.
But the documentation is quite sparse for this package, i.e.:
The two functions: peacock2 and peacock3, provided in this package are self-explanatory and their usage is straightforward.
In particular I could not find what the output of the peacock()
function represents (I guess this is something like a p-value) ?
Has anyone has tested this function and could they tell me what it is (and if this function is reliable?)?
Usage example:
x <- matrix(rnorm(12, 0, 1), ncol=2)
y <- matrix(rnorm(16, 0, 1), ncol=2)
ks <- peacock2(x, y)
ks