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