powered by
lasso.rand(x, y, weakness = 1, subsample = 1:nrow(x), dfmax = (ncol(x) + 1), lambda = NULL, standardize = FALSE, intercept = FALSE, ...)
glmnet
y <- rnorm(50) x <- matrix(runif(50 * 20), ncol = 20) lasso.rand(x = x, y = y)
Run the code above in your browser using DataLab