Hello Statalist users,
I perform a difference in difference analysis with a large panel data set. I'd like to illustrate the results of my analysis in a graph like the one attached:
In this graph, the dotted line shows the control group, while the solid line shows the treatment group (you can see that trends were almost identical before treatment).
My fixed effects difference in difference regression looks like this:
Can someone please give me some advice how I can now proceed to illustrate my results in a graph like the one attached? I think I have to use -margins- and -marginsplot- in some form, but I cannot figure out how to do it.
Thanks in advance!
I perform a difference in difference analysis with a large panel data set. I'd like to illustrate the results of my analysis in a graph like the one attached:
In this graph, the dotted line shows the control group, while the solid line shows the treatment group (you can see that trends were almost identical before treatment).
My fixed effects difference in difference regression looks like this:
Code:
areg y i.treat##i.post i.dm covariates [aweight = cem_weights], absorb(id) vce(cluster id) /// dm is my time variable, id is the panel variable, treat and post are dummy variables
Thanks in advance!
Comment