Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Plotting a fixed effects model with a continuous by binary interaction

    Dear Statalisters,

    In my research paper, I investigate the effects of the ICT (mobile data subscriptions) on the size of the shadow economy (shadow_economy) in 39 countries. I have a panel of 39 countries (id) with 10 years of observations (t).

    I also classify the counties by their income level, which is specified by the "income" dummy, income=0 represents a low level of income, and income=1 represents more advanced countries

    I ran the following regression
    Code:
    xtreg shadow_economy c.mobile##i.income i.t, fe cluster(id)
    and wanted to plot this regression to illustrate the interaction effect

    Yet using the
    Code:
    margins
    and
    Code:
    marginsplot
    commands did not work for me

    Please advise on how to properly plot the regression. I appreciate your help!
Working...
X