Learn R Programming

CorReg (version 1.0.5)

cleancolZ: clean Z columns (if BIC improved)

Description

clean Z columns (if BIC improved)

Usage

cleancolZ(X = X, Z = Z, Bic_null_vect = Bic_null_vect, methode_BIC = 1,
  plot = F, verbose = 1, star = FALSE)

Arguments

X
the dataset
Z
binary adjacency matrix of the structure (size p)
Bic_null_vect
vector of the BIC for each covariate
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
if TRUE BIC* is used instead of bic