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@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.

Reply via email to