Dear Statalist-members!
My aim: I want to predict a certain type of Y (behavior, 4 categories) by X1 (gender, 2 categories), X2 (hours of exposure to intervention material, continuous) and X3 (controll variable). I expect that the hours of exposure will have a differential effect for both gender groups.
What I did: First, I ran a multinomial logistic regression without an interaction term. Second, I ran the same regression including an interaction term.
My code:
qui mlogit Y i.X1 X2 X3, rrr base(1) // Base model
margins, dydx(*) post
qui mlogit Y i.X1 X2 i.X1#c.X2 X3, rrr base(1) // Interaction model
margins, dydx(*) post
margins, dydx(X2) over(X1)
margins, dydx(X2) at (X1=(0 1))
My questions:
1. In terms of the size of the interaction effect it is above my understanding, why the the "over" and the "at"-specification result in slightly different estimates (though the general effect structure remains the same)?
2. I suppose that I can interpret the margins effects from the "over" or "at" commands as: the average increase in likelihood to show a behaviour - with one hour more exposure - for either men or women - subsequently for all four behaviour types. What I found interesting and very different to the interactions I have dealt with in OLS, is that the main effects (i.e. X1 and X2) did only minimally differ between the base model and the interaction model (though the effect of X2 is also very small).
I would be thankful for any small piece of advice!
My aim: I want to predict a certain type of Y (behavior, 4 categories) by X1 (gender, 2 categories), X2 (hours of exposure to intervention material, continuous) and X3 (controll variable). I expect that the hours of exposure will have a differential effect for both gender groups.
What I did: First, I ran a multinomial logistic regression without an interaction term. Second, I ran the same regression including an interaction term.
My code:
qui mlogit Y i.X1 X2 X3, rrr base(1) // Base model
margins, dydx(*) post
qui mlogit Y i.X1 X2 i.X1#c.X2 X3, rrr base(1) // Interaction model
margins, dydx(*) post
margins, dydx(X2) over(X1)
margins, dydx(X2) at (X1=(0 1))
My questions:
1. In terms of the size of the interaction effect it is above my understanding, why the the "over" and the "at"-specification result in slightly different estimates (though the general effect structure remains the same)?
2. I suppose that I can interpret the margins effects from the "over" or "at" commands as: the average increase in likelihood to show a behaviour - with one hour more exposure - for either men or women - subsequently for all four behaviour types. What I found interesting and very different to the interactions I have dealt with in OLS, is that the main effects (i.e. X1 and X2) did only minimally differ between the base model and the interaction model (though the effect of X2 is also very small).
I would be thankful for any small piece of advice!
Comment