Hello
I am using a generalized/staggered difference-in-difference approach to investigate the effect of transferring from a public employer to a private employer.
Here is my code:
treatment is 1 in the group that receives the treatment (and is 1 in those observations at all times, including before treatment started) and 0 in all observations for the untreated group.
active_treatment is 1 in the treatment group after treatment begins, but is 0 in the treatment group before treatment begins and is 0 in all observations in the control group
I have read that the coefficient for active_treatment is my generalized difference-in-difference coefficient.
If possible, I would also like to moderate the effects of the treatment by job type:
I have attempted to use margins and marginsplot to visualize the effect:

However, I would like some help with interpreting the plot as I am not entirely sure what is left in the 0-category? It might also be the case that the interaction needs to be calculated in a completely different way.
Appreciate any help!
Gustav
I am using a generalized/staggered difference-in-difference approach to investigate the effect of transferring from a public employer to a private employer.
Here is my code:
Code:
xtset id time xtreg outcome i.treatment i.active_treatment i.time [aw = cem_weights] , fe cluster(id)
active_treatment is 1 in the treatment group after treatment begins, but is 0 in the treatment group before treatment begins and is 0 in all observations in the control group
I have read that the coefficient for active_treatment is my generalized difference-in-difference coefficient.
If possible, I would also like to moderate the effects of the treatment by job type:
Code:
xtreg outcome i.treatment i.active_treatment##i.job_type i.time i.partnership [aw = cem_weights] , fe cluster(id)
Code:
margins jobe_type, at(active_treatment= (0 1)) marginsplot
However, I would like some help with interpreting the plot as I am not entirely sure what is left in the 0-category? It might also be the case that the interaction needs to be calculated in a completely different way.
Appreciate any help!
Gustav
Comment