Hi, I want to do a graph to check for parallel pre-treatment trends.
I have done it on the unmatched sample using:
separate yvariable, by(treated)
bysort Year: egen Untreated = mean(yvariable0)
bysort Year: egen Treated = mean(yvariable1)
twoway (connect Untreated Year) (connect Treated Year) etc.
But I have also performed a coarsened exact matching which I include in the regressions by:
reg yvariable Treated Post PostTreated X [iweight=cem_weights].
I can however not find a way to use the matched sample in the graphs, can anyone help?
Thanks in advance
I have done it on the unmatched sample using:
separate yvariable, by(treated)
bysort Year: egen Untreated = mean(yvariable0)
bysort Year: egen Treated = mean(yvariable1)
twoway (connect Untreated Year) (connect Treated Year) etc.
But I have also performed a coarsened exact matching which I include in the regressions by:
reg yvariable Treated Post PostTreated X [iweight=cem_weights].
I can however not find a way to use the matched sample in the graphs, can anyone help?
Thanks in advance