I am running an melogit regression model
What is different between the following lines of the code? Assume that x2 has two levels 1 and 2.
Marginal effects
Separate regressions for each subgroup of x2.
Conceptually, what is the difference between the marginal effects for each level of x2, vs the coefficient that I obtain for x1 by running the regression separately for each level of x2. I am getting very different results using these approaches for my actual data.
Code:
melogit dv c.x1 i.x2 i.x3 i.x4 || x5: || x6:
Marginal effects
Code:
margins x2, dydx(x1)
Code:
melogit dv c.x1 i.x3 i.x4 if x2==1 || x5: || x6: melogit dv c.x1 i.x3 i.x4 if x2==2 || x5: || x6:
Comment