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
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
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
3 matches
Mail list logo