I am estimating an event study where the event time is interacted with another dummy. I would like to graph the coefficients and confidence intervals using the coefplot command. Although the regression correctly omits the base category (event time 19) it is not properly displayed on the plot. It should be just a dot at event time 19 and 37 estimates. However on the plot I see 37 estimates without the base category at 19. I think it has to do with putting the interaction in the keep, but I can't figure out how I could do it properly. Any help would be appreciated. Data example is attached (example.dta).
Code:
reghdfe outcome i.dummy ib19.eventtime i.dummy#ib19.eventtime coefplot, base vertical keep(1.dummy#*.eventtime) yline(0) xline(19) xlabel(1(2)38)
Comment