Re: [R] glmnet with binary logistic regression

2011-07-24 Thread Patrick Breheny
On 07/23/2011 11:43 AM, fongchun wrote: I was also thinking of a bootstrapping approach where I would actually run cv.glmnet say 100 times and then take the mean/median lambda across all the cv.glmnet runs. This way I generate a confidence interval for my optimal lambda I woud use in the end.

Re: [R] glmnet with binary logistic regression

2011-07-24 Thread mxkuhn
10 fold cv has high variation compared to other methods. Use repeated cv or the bootstrap instead (both of which can be used with glmnet by way of the train() function on the caret package). Max On Jul 23, 2011, at 11:43 AM, fongchun wrote: > Hi Patrick, > > Thanks for the reply. I am ref

Re: [R] glmnet with binary logistic regression

2011-07-23 Thread fongchun
Hi Patrick, Thanks for the reply. I am referring to using the cv.glmnet() function with 10-fold cross validation and letting glmnet determine the lambda sequence. The optimal lambda that it is returning fluctuates between different runs of cv.glmnet. Sometimes the model that is return deviates

Re: [R] glmnet with binary logistic regression

2011-07-23 Thread Patrick Breheny
On 07/22/2011 07:51 PM, fongchun wrote: I am using the glmnet R package to run LASSO with binary logistic regression. ... What I am finding is that this optimal lambda value fluctuates everytime I run glmnet with LASSO. > ... Does anyone know why there is such a fluctuation in the generation o

[R] glmnet with binary logistic regression

2011-07-23 Thread fongchun
Hi all, I am using the glmnet R package to run LASSO with binary logistic regression. I have over 290 samples with outcome data (0 for alive, 1 for dead) and over 230 predictor variables. I currently using LASSO to reduce the number of predictor variables. I am using the cv.glmnet function to d