clean the structure of correlations Z (if BIC improved)
cleanZ(
X = X,
Z = Z,
Bic_null_vect = Bic_null_vect,
methode = 1,
plot = FALSE,
verbose = 1,
star = FALSE
)
the dataset
binary adjacency matrix of the structure (size p)
the BIC of the null hypothesis (used for independent variables)
parameter for OLS (matrix inversion) methode_BIC parameter for OLS (matrix inversion) 1:householderQr, 2:colPivHouseholderQr
if TRUE returns the vector of BIC for each step
0:none, 1:BIC,step and complexity when best BIC found 2:BIC, step, complexity, nb candidates and best candidate when best BIC found
boolean defining wether classical BIC or BIC* is computed