[R] glmnet strange error message

From: Dave_F <friedenbergd_at_battelle.org>
Date: Wed, 02 Jun 2010 09:51:53 -0700 (PDT)

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 level factor. I can fit the model with no errors but when I try to cross-validate after about 30 seconds I get the following:

> glmnet.fit = glmnet(covars,resp,family="multinomial")
> glmnet.cv = cv.glmnet(covars,resp,family="multinomial",type="class")
Error in if (outlist$msg != "Unknown error") return(outlist) :   argument is of length zero

It seems like it makes it through the first couple folds but trips up somewhere in the middle.
The example in the documentation works perfectly on my machine. Any ideas on what the problem may be?

Thanks!
Dave

-- 
View this message in context: http://r.789695.n4.nabble.com/glmnet-strange-error-message-tp2240458p2240458.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Jun 2010 - 16:54:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jun 2010 - 12:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive