bet.plot {BET} | R Documentation |
Plotting Binary Expansion Testing (2-dimensions)
Description
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 class '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 |
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, |
... |
graphical parameters to plot |
Examples
v <- runif(128, -pi, pi)
X1 <- cos(v) + 2.5 * rnorm(128, 0, 1/20)
X2 <- sin(v) + 2.5 * rnorm(128, 0, 1/20)
bet.plot(cbind(X1, X2), 3, index = list(1,2))