Learn R Programming

CorReg (version 1.0.5)

Winitial: initialization based on a wheight matrix (correlation or other)

Description

initialization based on a wheight matrix (correlation or other)

Usage

Winitial(W = W, X = NULL, p1max = NULL, BIC = F, Bic_null_vect = NULL,
  relax = T, random = T, nbclustmax = 5, sorted = T, mode = c("all",
  "sorted", "multinom"), p2max = NULL)

Arguments

W
Weight matrix with values between 0 and 1 ( e.g. : abs(cor(X)) )
X
the dataset (if BIC=TRUE)
p1max
maximum complexity for a regression
BIC
boolean to use BIC for probabilities.
Bic_null_vect
the BIC of the null hypothesis (used for independent variables)
relax
TRUE: constraint relaxation, FALSE: reject mode
random
if FALSE W is not used.
nbclustmax
parameter for calcul_BIC_mixmod if needed
sorted
boolean to sort the candidates based on W (best first)
mode
candidates strategy
p2max
maximum number of regressions