This function defines, for each specified value of r_n the set of indicator funtions h(X_i) which are the key elements for the RE test with co covariates
c_cube(X_adj, N, DX, r_n)
the standardised version of the covariates X
the size of X
the number of covariates
the parameter indexing the number of instrumental function, which is chosen according the the rule used in AS y default.
a list containing, in order:
- X_adj he standardised version of the covariates X
- r_n the parameter indexing the number of instrumental function, which is chosen according the the rule used in AS y default.
- g_col a vector containing part of the weights
- Q_AR a matrix with the weights that enter the statistic T
- G_X a binary matrix indexing the observations X that fall into the hypercubes indexed by h.