I have been running the following code. I am using the Card and Krueger (1994) dataset, attached here.
I would like to get the standard errors by states, in this case, New Jersey and Pennsylvania. However, I can only export the combined standard error of the ttest. Is there any way to export these standard errors and put them below the mean value per column?
Best Regards,
Rony
Code:
local vars bk kfc roys wendys co_owned emptot wage_st /// pmeal hrsopen emptot2 wage_st2 pmeal2 hrsopen2 estpost ttest `vars', by(pa) esttab using "$outputs\table2.csv", replace cells("mu_1(fmt(1)) mu_2(fmt(1)) t(fmt(1))") /// title(Table 2: Means of Key Variables) /// wide nonumber noobs label /// addnotes("Notes: Standard errors are given in parentheses")
Best Regards,
Rony
Comment