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)
}

Try the CorReg package in your browser

Any scripts or data that you put into this service are public.

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