R/fit.LASSO.R

Defines functions fit.LASSO

Documented in fit.LASSO

fit.LASSO <- function(response, x, cplx, ...){
   require(penalized)
   data <- as.data.frame(x)
   data$response <- response
   res <- 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 May 2, 2019, 4:08 a.m.