Hello all,

I am having trouble calculating margins after running a melogit with 3 levels. The command for the melogit is formulated as:

melogit y x z || level2var: || level3var:

I then try to caluculate margins at specefic levels of two variables in the FE equation and am presented with the following error message:

could not calculate numerical derivatives -- discontinuous region with missing values
encountered

r(459);

There is no problem obtaining margins when the melogit was calculated with only one level variable, regardless of which level variable I use.

Does anyone have any advice about this issue and how to move past it?