R/explicatif.R

Defines functions explicatif

# ' calcul des modeles explicatifs
explicatif <- function(X = X, Y = Y, Z = Z, type = c("lasso", "lar", "forward.stagewise", "stepwise"), intercept = TRUE) {
  X = X[, colSums(Z) == 0]
  res = lars(x = X, y = Y, type = type, intercept = intercept)
  return(res)
}
CorReg-community/CorReg documentation built on Oct. 19, 2021, 6:30 p.m.