Dear Statalisters,
I am conducting a difference-in-difference analysis with my bank level data with the pandemic as an exogenous shock. The analysis is going great and this is only a minor issue, however, I can't seem to think of, or rather do not know how to find a way to plot a parallel trends graph that is informative. I use the built in estat trendplots feature in Stata 17 following the xtdidregress function which is great and provides what's needed albeit in not most aesthetically pleasing manner. However, the issue is my outcome variables are change variables and are very tiny (talking +/- 0.03) pre treatment and post treatment experience a huge drop (-0.27) which expands the graph along Y dimension substantially. Since the difference between control and treatment group is very minor this graph does not provide too insightful information (see the graph #1 below).
What I am looking for is an idea or suggestion on how to to make it more understandable, perhaps having the difference in means in each quarter as one line with a 95% confidence intervals plotted next to that line to see whether the trends are at zero essentially showing that they are parallel (essentially what estat ptrends does but graphically). Another solution I can come up with is having distorted Y-axis, that is, have it be shortened below the X-axis to reduce the difference, however, it might be misleading and I am not sure it is doable in Stata.
I've looked through Google and Statalist for solutions, however, they do not seem to provide the solution that I am looking for and would be comfortable in using for my thesis. I did plot one solution using margins function as suggested by Clyde Schechter on another thread here on this forum, however, I am not sure what to make of it as I struggle to understand what the graph is showing (see graph #2).
Graph #1:
Graph #2:
What I think I am looking for is something closer to this graph, except for instead of confidence bands, have confidence interval lines go:
Any help or any suggestions would be greatly appreciated. Thank you so much in advance!
I am conducting a difference-in-difference analysis with my bank level data with the pandemic as an exogenous shock. The analysis is going great and this is only a minor issue, however, I can't seem to think of, or rather do not know how to find a way to plot a parallel trends graph that is informative. I use the built in estat trendplots feature in Stata 17 following the xtdidregress function which is great and provides what's needed albeit in not most aesthetically pleasing manner. However, the issue is my outcome variables are change variables and are very tiny (talking +/- 0.03) pre treatment and post treatment experience a huge drop (-0.27) which expands the graph along Y dimension substantially. Since the difference between control and treatment group is very minor this graph does not provide too insightful information (see the graph #1 below).
What I am looking for is an idea or suggestion on how to to make it more understandable, perhaps having the difference in means in each quarter as one line with a 95% confidence intervals plotted next to that line to see whether the trends are at zero essentially showing that they are parallel (essentially what estat ptrends does but graphically). Another solution I can come up with is having distorted Y-axis, that is, have it be shortened below the X-axis to reduce the difference, however, it might be misleading and I am not sure it is doable in Stata.
I've looked through Google and Statalist for solutions, however, they do not seem to provide the solution that I am looking for and would be comfortable in using for my thesis. I did plot one solution using margins function as suggested by Clyde Schechter on another thread here on this forum, however, I am not sure what to make of it as I struggle to understand what the graph is showing (see graph #2).
Graph #1:
Graph #2:
What I think I am looking for is something closer to this graph, except for instead of confidence bands, have confidence interval lines go:
Any help or any suggestions would be greatly appreciated. Thank you so much in advance!
Comment