Re: [R] glmnet strange error message

2010-06-03 Thread Dave_F
I think I have figured out the problem. The response variable has one level with only one observation -- hence when that one observation was in the test set the training data did not contain any observations from that level and so did not fit a logistic model for that level causing the somewhat cr

Re: [R] glmnet strange error message

2010-06-02 Thread Joris Meys
Could you give us the traceback? (In case you don't know, just type traceback() right after you got the error message.) I can't reproduce the error, so it gets a bit difficult to solve without having the real data. Cheers Joris On Wed, Jun 2, 2010 at 6:51 PM, Dave_F wrote: > > Hello fellow R us

[R] glmnet strange error message

2010-06-02 Thread Dave_F
Hello fellow R users, I have been getting a strange error message when using the cv.glmnet function in the glmnet package. I am attempting to fit a multinomial regression using the lasso. covars is a matrix with 80 rows and roughly 4000 columns, all the covariates are binary. resp is an eight lev