Hi all,
I am trying to graph raw trends to show parallel trends for a DiD estimation. Now for the unadjusted trends, I do not need to run the regression, so I was using separate and graph to generate the parallel trend graphs. However, since the point estimates of the excercise is very small, it does not visibly show up on the graph. My understanding is that if I rescale the Y axis, I might be able to show the changes. Is there a way to rescale the axis. I used
to generate the graphs.
Here Bihar is basically the group assignment and Year is the 3 years for which data was collected. In fact 1 stands for 2003, 2 stands for 2014 and 3 stands for 2019. so my typical regression for the DiD would be
Post is 1 for Year = 3 and 0 otherwise
Here's a data example
I am trying to graph raw trends to show parallel trends for a DiD estimation. Now for the unadjusted trends, I do not need to run the regression, so I was using separate and graph to generate the parallel trend graphs. However, since the point estimates of the excercise is very small, it does not visibly show up on the graph. My understanding is that if I rescale the Y axis, I might be able to show the changes. Is there a way to rescale the axis. I used
Code:
preserve separate drinkalcohol, by(Bihar) collapse (mean) drinkalcohol? , by(Bihar Year) graph twoway line drinkalcohol? Year, sort restore
Here Bihar is basically the group assignment and Year is the 3 years for which data was collected. In fact 1 stands for 2003, 2 stands for 2014 and 3 stands for 2019. so my typical regression for the DiD would be
Code:
reg drinkalcohol i.Bihar##i.Post i.Year
Here's a data example
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(Bihar Year) byte drinkalcohol 0 3 0 0 3 0 1 2 0 0 1 0 0 3 0 1 2 0 0 2 0 0 1 0 0 3 0 1 3 0 0 1 0 0 1 0 0 3 0 0 2 0 1 3 0 0 3 0 0 2 0 1 2 0 1 3 0 0 1 0 1 3 0 0 3 0 1 3 0 0 1 0 0 3 0 0 2 0 1 3 0 1 3 0 0 3 0 0 1 0 0 2 0 0 2 0 1 3 0 0 3 0 0 2 0 0 2 0 0 3 0 0 3 0 1 3 0 0 3 0 0 3 0 1 3 0 0 2 0 0 2 0 0 2 0 0 1 0 0 2 0 0 2 0 0 2 0 1 2 0 0 2 0 0 1 0 0 2 0 0 2 0 0 2 0 1 2 0 0 2 0 0 1 0 1 1 0 0 2 0 0 3 0 0 2 0 0 2 0 0 2 0 0 2 0 0 2 0 1 2 0 0 3 0 0 1 0 0 3 0 0 2 0 0 2 0 0 3 0 0 3 0 1 3 0 0 1 1 0 3 0 1 2 0 1 1 0 1 2 0 0 1 0 0 2 0 1 3 0 0 2 0 1 2 0 1 2 0 1 2 0 1 2 0 0 3 0 1 3 0 0 3 0 0 3 0 0 1 0 0 2 0 1 2 0 0 2 1 0 1 0 0 2 0 1 2 0 0 1 1 end label values drinkalcohol S720 label def S720 0 "no", modify label def S720 1 "yes", modify

Comment