I came across the same thing, doing multinomial cross validation with
cv.glmnet but also doing it with a for loop with subsets on the X matrix and
y response categories. I've tested it out various ways and I think the
problem occurs because in one of the folds there are no codes for at least
on
On 2011-02-17 13:45, Brian Tsai wrote:
Hi,
I am trying to do multinomial regression using the glmnet package, but the
following gives me an error (for no reason apparent to me):
library(glmnet)
cv.glmnet(x=matrix(c(1,2,3,4,5,6,1,2,3,4,5,6),
nrow=6),y=as.factor(c(1,2,1,2,3,3)),family='multinomia
2 matches
Mail list logo