peacock3: Three Dimensional Kolmogorov-Smirnov/Peacock Two-Sample test In Peacock.test: Two and Three Dimensional Kolmogorov-Smirnov Two-Sample Tests

Description

This function implements the original definition of the three-dimensional Kolmogorov-Smirnov test by Peacock (1983). This test is not the widely used Fasano-Franceschini test (1987). The latter is a variant the Peacock test.

Usage

 `1` ```peacock3(x, y) ```

Arguments

 `x` x is the object representing the first sample. x should be able to be converted a matrix, where each row represents a sample point. If the object cannot be converted to a matrix, the function will stop and throw an error message. Pleaste note that only the first three columns of the matrix will be used, and the rest columns are just ingored. `y` Similar to x, y is the object representing the second sample.

Value

the value of the test statistic

Yuanhui Xiao

Examples

 ```1 2 3 4``` ``` x <- matrix(rnorm(12, 0, 1), ncol=3) y <- matrix(rnorm(18, 0, 1), ncol=3) ks <- peacock3(x, y) ks ```

Example output

```[1] 0.8333333
```

Peacock.test documentation built on May 29, 2017, 5:52 p.m.