Hi,
I have data of the US election at county level since 2000 (variable "per_dem" - percentage vote for the democratic party), and am running a difference in difference analysis to check the impact of a treatment in the year 2016 ("treat=1"). In order to check for parallel trends, I want to create a line chart by year with two lines:
- Average % vote since 2000 for democratic party for counties treated in 2020
- Average % vote since 2000 for democratic party for counties not treated in 2020
Is there a simple way of telling stata to plot the yearly average of "per_dem" of counties with treat=1 and "per_dem" of countries with treat=2?
Thank you very much,
Joan
I have data of the US election at county level since 2000 (variable "per_dem" - percentage vote for the democratic party), and am running a difference in difference analysis to check the impact of a treatment in the year 2016 ("treat=1"). In order to check for parallel trends, I want to create a line chart by year with two lines:
- Average % vote since 2000 for democratic party for counties treated in 2020
- Average % vote since 2000 for democratic party for counties not treated in 2020
Is there a simple way of telling stata to plot the yearly average of "per_dem" of counties with treat=1 and "per_dem" of countries with treat=2?
Thank you very much,
Joan
Comment