Re: [R] A question on glmnet analysis

2011-03-28 Thread khosoda
(11/03/27 22:49), KH wrote: (11/03/25 22:40), Nick Sabbe wrote: 2. Which model, I mean lasso or elastic net, should be selected? and why? Both models chose the same variables but different coefficient values. You may want to read 'the elements of statistical learning' to find some info on the a

Re: [R] A question on glmnet analysis

2011-03-27 Thread 細田弘吉
(11/03/25 22:40), Nick Sabbe wrote: > 2. Which model, I mean lasso or elastic net, should be selected? and > why? Both models chose the same variables but different coefficient values. > You may want to read 'the elements of statistical learning' to find some > info on the advantages of ridge/lass

Re: [R] A question on glmnet analysis

2011-03-26 Thread 細田弘吉
(11/03/26 0:12), Mike Marchywka wrote: Would you post your data or if you did I missed it? Sorry, I did not. This is patients' data and I have to obtain some permission from my office to send it, so ... I don't have an answer for you but curious as I was interested in similar analyses with

Re: [R] A question on glmnet analysis

2011-03-26 Thread 細田弘吉
Hi Nick, Thanks a lot for your quick response. Sorry for delayed response becasue of time difference between us. (11/03/25 22:40), Nick Sabbe wrote: > > I haven't read all of your code, but at first read, it seems right. > > > > With regard to your questions: > > 1. Am I doing it correctly or not?

Re: [R] A question on glmnet analysis

2011-03-25 Thread Nick Sabbe
vrijdag 25 maart 2011 14:04 To: r-h...@stat.math.ethz.ch Subject: [R] A question on glmnet analysis Hi, I am trying to do logistic regression for data of 104 patients, which have one outcome (yes or no) and 15 variables (9 categorical factors [yes or no] and 6 continuous variables). Number of ye

[R] A question on glmnet analysis

2011-03-25 Thread 細田弘吉
Hi, I am trying to do logistic regression for data of 104 patients, which have one outcome (yes or no) and 15 variables (9 categorical factors [yes or no] and 6 continuous variables). Number of yes outcome is 25. Twenty-five events and 15 variables mean events per variable is much less than 10. The