I want to produce a table that looks something like this:
Do summary stats, take the output of summary stats to get mean and SD, then use a t-test of the difference, etc. And then copy-paste all the values one by one.
Or is there an easy Stata code?
I have around 30 variables for which I would like to export the results in this format. Can anyone help me doing this?
Variable Name | Before Treatment | After Treatment | Difference b/w Before and After Treatment |
X | (Mean) | (Mean) | (Difference in Mean) |
(SD) | (SD) | [t-stat of the difference in mean] | |
Y | (Mean) | (Mean) | (Difference in Mean) |
(SD) | (SD) | [t-stat of the difference in mean] |
Or is there an easy Stata code?
I have around 30 variables for which I would like to export the results in this format. Can anyone help me doing this?
Comment