Hi everyone, In many tutorials and YouTube videos on moderation/interaction effects, people estimate the model with interaction terms using simple regress (pooled OLS), like:
reg y c.x1##c.x2
or with centering for probing simple slopes.
However, in my own analysis, the baseline model (without interaction) is a panel data model using fixed effects or random effects, for example:
xtreg y x1 x2 controls, fe
(or re).
My question is:
When I add an interaction term to test moderation, should I keep the same estimator (xtreg ..., fe or re) like this:
xtreg y c.x1##c.x2 controls, fe
or is it acceptable/common to switch to pooled OLS (regress) just for the interaction model?
I understand that if the data has panel structure and unobserved time-invariant heterogeneity is important (that's why I used FE/RE originally), then dropping FE/RE when adding the interaction might introduce bias similar to the baseline model. But I've seen some papers/tutorials stick with pooled OLS even for interactions in panel settings.
Is it standard practice to use xtreg (FE/RE) consistently for interaction models in panel data? Are there any specific considerations that I should be aware of?
And one additional question:
In my panel data model, the baseline model (without interaction) has 3 independent variables, for example:
xtreg y x1 x2 x3 controls, fe
When I add an interaction term between only two of them (say x1 and x2), do I still need to keep the third variable (x3) in the model? Like this:
xtreg y c.x1##c.x2 x3 controls, fe
Or is it okay to drop x3 when testing the interaction?
Thanks in advance for any advice or references!
Best regards,
reg y c.x1##c.x2
or with centering for probing simple slopes.
However, in my own analysis, the baseline model (without interaction) is a panel data model using fixed effects or random effects, for example:
xtreg y x1 x2 controls, fe
(or re).
My question is:
When I add an interaction term to test moderation, should I keep the same estimator (xtreg ..., fe or re) like this:
xtreg y c.x1##c.x2 controls, fe
or is it acceptable/common to switch to pooled OLS (regress) just for the interaction model?
I understand that if the data has panel structure and unobserved time-invariant heterogeneity is important (that's why I used FE/RE originally), then dropping FE/RE when adding the interaction might introduce bias similar to the baseline model. But I've seen some papers/tutorials stick with pooled OLS even for interactions in panel settings.
Is it standard practice to use xtreg (FE/RE) consistently for interaction models in panel data? Are there any specific considerations that I should be aware of?
And one additional question:
In my panel data model, the baseline model (without interaction) has 3 independent variables, for example:
xtreg y x1 x2 x3 controls, fe
When I add an interaction term between only two of them (say x1 and x2), do I still need to keep the third variable (x3) in the model? Like this:
xtreg y c.x1##c.x2 x3 controls, fe
Or is it okay to drop x3 when testing the interaction?
Thanks in advance for any advice or references!
Best regards,

Comment