binWDTest function

Two-sample test for multivariate data based on binning.

Two-sample test for multivariate data based on binning.

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.

Returns

p-value.

Examples

## 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)
  • Maintainer: Max Sommerfeld
  • License: GPL-2
  • Last published: 2017-03-07

Useful links