My ultimate goal is to quickly produce the result looking like below: Summary statistics for both treatment and control samples (both pre and post and their differences), and 3 difference columns (diff between trt & ctrl in the pre period, post period, and then the difference between those differences).
I was able to produce similar table using combinations of three codes:
Here are 2 problems with these.
1) The differences (columns F and L) are pre-post instead of post-pre, so the differences have flipped signs as well as their t-stats.
2) The last column (difference in difference). I just don't know how to produce it. Is there a way to save the differences (column N and P) and their stats then use them to produce column R?

I was able to produce similar table using combinations of three codes:
Code:
eststo a: estpost summarize eststo d: estpost ttest esttab a d, cells
1) The differences (columns F and L) are pre-post instead of post-pre, so the differences have flipped signs as well as their t-stats.
2) The last column (difference in difference). I just don't know how to produce it. Is there a way to save the differences (column N and P) and their stats then use them to produce column R?