Good afternoon,
We are contemplating a linear model that reached very high order of interactions, by now we are about at 4th and 5th order interactions. Think of something like:
Y = a + b1*X + b2*Z + b3*W + c1*X*Z + c2*X*W + c3*Z*W + d*X*Z*W + e,
but this thing done up to 4th and 5th level of interactions.
Estimating such models is trivial. What is a pain is to make sense after that of what you have estimated. For up to 3rd level interactions I just take derivatives, say d[EY]/dX = b1 + c1*Z + c2*W + d*Z*W, and I interpret the marginal effect of X on the EY through this derivative.
I do not really want to do that for 4th and 5th level interaction models. I know that -margins- can be used to make sense of such models.
Can you suggest how I go about to learning how to use -margins- in such high level interactions models?
We are contemplating a linear model that reached very high order of interactions, by now we are about at 4th and 5th order interactions. Think of something like:
Y = a + b1*X + b2*Z + b3*W + c1*X*Z + c2*X*W + c3*Z*W + d*X*Z*W + e,
but this thing done up to 4th and 5th level of interactions.
Estimating such models is trivial. What is a pain is to make sense after that of what you have estimated. For up to 3rd level interactions I just take derivatives, say d[EY]/dX = b1 + c1*Z + c2*W + d*Z*W, and I interpret the marginal effect of X on the EY through this derivative.
I do not really want to do that for 4th and 5th level interaction models. I know that -margins- can be used to make sense of such models.
Can you suggest how I go about to learning how to use -margins- in such high level interactions models?
Comment