Demonstration of the hdidregress command in Stata 18 for heterogeneous difference-in-differences (DID) estimation. Create tables and graphs to visualize the ATETs for each cohort or to aggregate within cohort, time, and exposure to treatment.
https://www.stata.com