Dear Statalists,
I am running a multinomial logit (mlogit) where my y has 3 possible values. I would like to regress my y on a fully interacted model, i.e. all my regressors are interacted with a dummy variable, D.
I do the following:
At the 4th specification (when I add year##D) the iterations just keep going forever, saying ‘(not concave)’. I left it run overnight and iterations continue with always less or more the same value of the log likelihood (so I do not think it is a matter of time).
If I just insert year (not interacted with D), it converges in few iterations and I get the results, so the problem is this interaction. I checked that there are no singletons (there are many observations for any possible year##D value, minimum 400).
Any suggestion?
PS the dataset is around 35,000 obs but I am planning to run this code on a 3,000,000 obs dataset. Also, I use Stata15 but I could also use Stata17. Just in case any of this is relevant.
I am running a multinomial logit (mlogit) where my y has 3 possible values. I would like to regress my y on a fully interacted model, i.e. all my regressors are interacted with a dummy variable, D.
I do the following:
Code:
mlogit y D mlogit y c.VAR1##D mlogit y c.VAR1##D i.VAR2##D mlogit y c.VAR1##D i.VAR2##D year##D
If I just insert year (not interacted with D), it converges in few iterations and I get the results, so the problem is this interaction. I checked that there are no singletons (there are many observations for any possible year##D value, minimum 400).
Any suggestion?
PS the dataset is around 35,000 obs but I am planning to run this code on a 3,000,000 obs dataset. Also, I use Stata15 but I could also use Stata17. Just in case any of this is relevant.

Comment