Hello forum!
I have been researching for a while yet I have not found an answer to my question, so I am hoping someone could kindly help here
I am trying to plot coefficients for a regression where I have year and country fixed effects, the regression command is:
I tried using this:
But it graphs all the i.t coefficients and the graph looks confusing overall.
Is there a more straightforward way to graph a fixed effects model with an interaction?
Thank you in advance for your help!
I have been researching for a while yet I have not found an answer to my question, so I am hoping someone could kindly help here

I am trying to plot coefficients for a regression where I have year and country fixed effects, the regression command is:
HTML Code:
xtreg gov_eff c.mobile##i.income i.t, fe cluster(id)
HTML Code:
xtreg gov_eff c.mobile##i.income i.t if income==0, fe cluster(id)
HTML Code:
estimates store gov_eff_low
HTML Code:
xtreg gov_eff c.mobile##i.income i.t if income==1, fe cluster(id)
HTML Code:
estimates store gov_eff_high
HTML Code:
coefplot gov_eff_low gov_eff_high, drop(_cons)
Is there a more straightforward way to graph a fixed effects model with an interaction?
Thank you in advance for your help!
Comment