binWDTest: Two-sample test for multivariate data based on binning.

Description Usage Arguments Value Examples

Description

Two-sample test for multivariate data based on binning.

Usage

1
binWDTest(x, y, L = 5, B = 100)

Arguments

x, y

The two samples, rows are realizations.

L

Number of bins in each dimension.

B

Number of realizations of limiting distribution to simulate.

Value

p-value.

Examples

1
2
3
4
5
## Not run: 
x <- MASS::mvrnorm(n = 100, mean = c(0, 0), Sigma = diag(1, 2))
y <- MASS::mvrnorm(n = 100, mean = c(0, 0), Sigma = diag(2, 2))
pVal <- binWDTest(x, y)
## End(Not run)

otinference documentation built on May 2, 2019, 3:36 p.m.