Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Descriptive statistics for difference-in-difference sample with t-stat and p-value

    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:
    Code:
    eststo a: estpost summarize
    eststo d: estpost ttest
    esttab a d, cells
    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?
    Click image for larger version

Name:	stata.jpg
Views:	1
Size:	146.2 KB
ID:	1762840


    Last edited by Jennifer Ozark; 01 Sep 2024, 10:06.
Working...
X