after fitting a lasso logit model (Stata 16.1) I receive the error "error in postselection b" with the error code r(430). Return code 430 states:
convergence not achieved
You have estimated a maximum likelihood model, and Stata's
maximization procedure failed to converge to a solution;
see help maximize. Check if the model is identified.
You have estimated a maximum likelihood model, and Stata's
maximization procedure failed to converge to a solution;
see help maximize. Check if the model is identified.
Code:
lasso logit y c.x1 c.x2 .... i.x13 i.x14 .... i.20 if (testSet != 2), selection(cv, gridminok) rseed(222)
I am fitting the model for 40 subsets of my data (referring to different countries for example) and then for 10 different subsets (for my own cross-validation).
Some of the regressions run with out a problem. I have the feeling those are the regressions with more data.
Those regressions that are troublesome work however, if I exclude some of the categorical variables, like the week identifier.
Any ideas where the problem comes from and maybe also potential solutions?
Thanks a lot,
Chris
EDIT: just want to point out that the problem is similar to the one described here: https://www.statalist.org/forums/for...ostselection-b , but there is no solution provided. But it seems to be a more common problem.
0 Response to Lasso logit: error in postselection b
Post a Comment