Announcement

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

  • Creating an event plot for 2x2 DID

    Hi all, I have DiD study looking at the impact of a 2005 policy in the UK on a binary behavior outcome for immigrants from two types of countries, with (immigrant origin) country and year fixed effects and am trying to do an event plot using the base year of 2005. Here is the regression:

    Code:
     logistic outcome countrycategory##ib.2005.year i.country i.year, or vce(cluster country)
    I've tried the following which was a bit of a disaster, because the base year became the first year listed in the graph (out of chronological order), and the coefficients from before 2005 were not displayed:

    Code:
     coefplot, keep(*countrycategory#*year) vertical base yline(0) order(1.countrycategory#1995.year, 1.countrycategory#1996.year....1.countrycategory#2014.year)
    If there are any other approaches to this I'm more than happy to entertain them.

  • #2
    coefplot is from SSC (FAQ Advice #12). Data example?

    Comment

    Working...
    X