I tried to do multinomial logit regression in R. I used the following command:
fit <- glmnet(xdata, newdata2$state, family="multinomial" )
but I got this error:
Error: from glmnet Fortran code (error code 8001); Null probability for class 1 < 1.0e-5
I don't know how should I fix this error and I will be thankful for any help. Also please let me know if there is any easier way to perform multinomial logit regression (and not bionomial) in R.
EDIT:
table(newdata2$state)
Bad D F H IND PR RRT RRT1 RRT2 RRT3
0 722 9691 1273 187 2058 937 0 0 0