cleanZ: clean the structure of correlations Z (if BIC improved)

Description Usage Arguments

View source: R/cleanZ.R

Description

clean the structure of correlations Z (if BIC improved)

Usage

1
2
3
4
5
6
7
8
9
cleanZ(
  X = X,
  Z = Z,
  Bic_null_vect = Bic_null_vect,
  methode = 1,
  plot = FALSE,
  verbose = 1,
  star = FALSE
)

Arguments

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


CorReg documentation built on Feb. 20, 2020, 5:07 p.m.