g2Test(data, x, y, cs, dc)
g2Test_perm(data, x, y, cs, dc, nperm)
g2Test_univariate
and g2Test_univariate_perm
.
If there is an overlap between x, y and cs you will get 0 as the value of the test statistic.
g2Test_univariate, g2Test_univariate_perm, correls, univglms
nvalues <- 3
nvars <- 10
nsamples <- 10000
data <- matrix( sample( 0:(nvalues - 1), nvars * nsamples, replace = TRUE ), nsamples, nvars )
dc <- rep(nvalues, nvars)
g2Test( data, 1, 2, 3, c(3, 3, 3) )
g2Test_perm( data, 1, 2, 3, c(3, 3, 3), 1000 )
Run the code above in your browser using DataLab