bet.plot shows the cross interaction of the strongest asymmetry, which the BET returns with the rejection of independence null.
This function only works for the test on two variables, that is, X can only have two columns.
There are \(2^{2dep} - 1\) nontrivial binary variables in the \(\sigma\)-field and \((2^dep - 1)^2\) of them are cross interactions, whose positive regions are in plotted in white and whose negative regions are plotted in blue.
plot.bet shows the cross interaction where the difference of number of observations in the positive and negative region is largest.
Usage
# S3 method for plot
bet(X, dep, unif.margin = FALSE, cex=0.5, index = list(c(1:ncol(X))), ...)
Arguments
X
a matrix with two columns.
dep
depth of BET.
unif.margin
logicals. If TRUE the marginal distribution is known to be Uniform[0,1]. Default is FALSE, and empirical cdf transformation will be applied to each marginal distribution.
cex
number indicating the amount by which plotting text and symbols should be scaled relative to the default.
index
a list of indices. If provided, test the independence among two or more groups of variables. For example, index = list(c(1,2)) refers to test data uniformity, index = list(1, 2) refers to test independence between \(X_1\) and \(X_2\). Default to be list(c(1:p)), where p = ncol(X), then test data uniformity.