get.signs {BET} | R Documentation |
Signs of Colors of all Points for all Interactions
Description
get.signs
returns all the signs of colors for each point under all interactions up to depth d
in marginal binary expansions for the tests BET
and BETs
.
Usage
get.signs(X, dep, unif.margin = FALSE)
Arguments
X |
a matrix to be tested. |
dep |
depth of the marginal binary expansions. |
unif.margin |
logicals. If |
Value
The result is a dataframe with n
rows and 2^(p*dep)
columns, where p
is the number of columns of X
and n
is the number of rows of X
. The values of 1
or -1
stand for the sign of color, while the marginal interactions return 0
.
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)
get.signs(cbind(X1, X2), 3)
[Package BET version 0.5.3 Index]