R/fit.LASSO.R

Defines functions fit.LASSO

Documented in fit.LASSO

fit.LASSO <- function(response, x, cplx, ...){
   data <- as.data.frame(x)
   data$response <- response
   res <- penalized::penalized(response=response, data=data, lambda1=cplx, penalized=x, trace=FALSE, ...)
   attr(res, "response") <- response
   attr(res, "x") <- x
   res
}

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.