Hi,
I am trying to estimate the marginal effects for the interaction term of 1) a categorical variable that records the frequency of using a mobile phone with 5 levels (0-4) and 2) a continuous variable that is the proportion of respondents in a primary sampling unit that voted.
My model is coded as: melogit yvar i.phoneusefreq##c.votedproportion other controls
margins, dydx(*) atmeans post
When I hand code an interaction term, I am able to obtain the marginal effects, but I know this is not the correct approach and one should follow Stata's ## notation for interactions, but my output has no estimates for the marginal effects when I use this approach. Is there a way to overcome this?
Thanks.
I am trying to estimate the marginal effects for the interaction term of 1) a categorical variable that records the frequency of using a mobile phone with 5 levels (0-4) and 2) a continuous variable that is the proportion of respondents in a primary sampling unit that voted.
My model is coded as: melogit yvar i.phoneusefreq##c.votedproportion other controls
margins, dydx(*) atmeans post
When I hand code an interaction term, I am able to obtain the marginal effects, but I know this is not the correct approach and one should follow Stata's ## notation for interactions, but my output has no estimates for the marginal effects when I use this approach. Is there a way to overcome this?
Thanks.
Comment