R/complexity.LASSO.R

Defines functions complexity.LASSO

Documented in complexity.LASSO

complexity.LASSO <- function(response, x, full.data, ...){
   #requireNamespace(penalized)
   prof <- penalized::profL1(response=response, penalized=x, trace=FALSE, ...)
   lambda <- prof$lambda[which.max(prof$cvl)]
   lambda
}

Try the peperr package in your browser

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

peperr documentation built on March 31, 2023, 7:34 p.m.