Hello, everyone. I am using eventdd in Stata 17.0. I am trying to figure out how to keep event time -1 as my omitted category and I am trying to find a way to manually set event time -4 (i.e. lead 4) as an additional omitted category in the graph I am creating. Here is my code:
Here is what my graph currently looks like:

The command eventdd is automatically setting event time 3 (i.e. lag 3) as the second ommitted category. I want to manually override the command to set event time -4 (i.e. lead 4) as the second omitted category.
I have attempted looking through Statalist, the Clarke and Schythe (2020) working paper found here https://ftp.iza.org/dp13524.pdf, the eventdd help file and its examples, related commands such as fvset, etc. and I cannot figure it out. I know that plotting the graph I am wanting must be possible as a nearly identical graph appears in Appendix Figure A.5 in this paper https://papers.carlyurban.com/PBE-an...nt_Jan2021.pdf . I can provide additional details on the data if it is helpful. Thanks!
Code:
eventdd series `xlist3' i.state##c.trend i.state i.year [pw=weight], noline timevar(timeToTreat) method(ols, cluster(state)) graph_op(title("(a) Total Population") ytitle("Coefficient") xtitle("Event Time") xlabel(-4 (1) 3) ylabel(-0.3 (0.1) 0.3) legend(off))
The command eventdd is automatically setting event time 3 (i.e. lag 3) as the second ommitted category. I want to manually override the command to set event time -4 (i.e. lead 4) as the second omitted category.
I have attempted looking through Statalist, the Clarke and Schythe (2020) working paper found here https://ftp.iza.org/dp13524.pdf, the eventdd help file and its examples, related commands such as fvset, etc. and I cannot figure it out. I know that plotting the graph I am wanting must be possible as a nearly identical graph appears in Appendix Figure A.5 in this paper https://papers.carlyurban.com/PBE-an...nt_Jan2021.pdf . I can provide additional details on the data if it is helpful. Thanks!
Comment