I'm now doing my final project, in which I like to study the interaction effect between level of urbanization (percentage of urban population) and level of democracy (polity2 score: -10 to 10) on strike incidence (country-year count). I run state like this after sorting panel data:
xtnbreg strike c.urban##c.polity2 (other control variables), fe
then I want the marginal effect of urban at different level of polity2, so I run:
margins, dydx(urban) \\Actually I tried all kinds of things here but nothing works.
But the state just keep saying "default prediction is a function of possibly stochastic quantities other than e(b)". I've been tortured for two days by this, searching lots of solutions but still no clue. I'm now posting my question here for suggestions and advice. Thank you all!
xtnbreg strike c.urban##c.polity2 (other control variables), fe
then I want the marginal effect of urban at different level of polity2, so I run:
margins, dydx(urban) \\Actually I tried all kinds of things here but nothing works.
But the state just keep saying "default prediction is a function of possibly stochastic quantities other than e(b)". I've been tortured for two days by this, searching lots of solutions but still no clue. I'm now posting my question here for suggestions and advice. Thank you all!
Comment