bcallaway11 / did

Difference in Differences with Multiple Periods, website: https://bcallaway11.github.io/did
287 stars 91 forks source link

Plotting multiple event studies #169

Closed effedp closed 1 year ago

effedp commented 1 year ago

Hey all, thank you for this fantastic tool. I wondered whether there is an easy way to ask ggdid to plot multiple ggdid.AGGTEobj in the same figure. It would be a great addition to have it capable of handling multiple results.

bcallaway11 commented 1 year ago

We don't have this functionality in the package, but it should be pretty straightforward to do it yourself; in fact, it is probably better for you to do it yourself as you can customize the plot to suit your purposes.

In my Handbook of Labor, Human Resources and Population Economics chapter, Figure 3 has 3 event studies all in the same plot.

The code to produce it starts at line 308 here: https://github.com/bcallaway11/did_chapter/blob/master/analysis.R. Perhaps you could do something like that.

Brant

effedp commented 1 year ago

Thank you very much, Brant; this surely helps!