[R] Elastic net

2017-12-08 Thread woleogunj...@gmail.com
Dear R users,                          I am using "Glmnet" package in R for applying "elastic net" method. In elastic net, two penalities are applied one is lambda1 for  LASSO and lambda2 for ridge ( zou, 2005) penalty. How can I  write the code to  pre-chose the  lambda1 for LASSO and lambda2 fo

Re: [R] Elastic net in R (enet package)

2009-08-25 Thread Max Kuhn
It estimates the model for every value of the L1 parameter. See ?predict.enet. When you predict, you have to specify the other parameter (which you can do a variety of ways). Max On Tue, Aug 25, 2009 at 8:54 AM, Alex Roy wrote: > Dear R users, >                        I am using "enet" package in

[R] Elastic net in R (enet package)

2009-08-25 Thread Alex Roy
Dear R users, I am using "enet" package in R for applying "elastic net" method. In elastic net, two penalities are applied one is lambda1 for LASSO and lambda2 for ridge ( zou, 2005) penalty. But while running the analysis, I realised tht, I optimised only one lambda. ( eve

[R] Elastic net loop problem

2008-08-21 Thread allisa denne
Dear Members, I am working on Elastic net and using R package for that. I have two matrix. My response is a matrix of size 50X50 and predictor is also in same size. I want to extract only cloumns from the matrix and do the elastic net analysis then store them as a matrix. library(ela