Hello all,
I would like to recreate as much as possible the following table (wih different variables):

I have managed to get most of the way using the following code:
. do "C:\Users\Kris\AppData\Local\Temp\STD5320_000000.t mp"
. eststo lessthan15: quietly estpost summarize SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT if ave15 == 0, detail
. eststo morethan15: quietly estpost summarize SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT if ave15 == 1, detail
. eststo diff: quietly estpost ttest SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT, by(ave15) unequal
. esttab lessthan15 morethan15 diff, cells("mean(pattern(1 1 0) fmt(3)) sd(pattern(1 1 0)) median(pattern(1 1 0)) b(star pattern(0 0 1) fmt(3)) t(patt
> ern(0 0 1) par fmt(3))")
However, as you can see from my results I am missing column names for 1, 2 and 3, as well as a title line, and explanatory line as above. I am also missing the median.

Any help would be greatly appreciated,
Kayleigh
I would like to recreate as much as possible the following table (wih different variables):
I have managed to get most of the way using the following code:
. do "C:\Users\Kris\AppData\Local\Temp\STD5320_000000.t mp"
. eststo lessthan15: quietly estpost summarize SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT if ave15 == 0, detail
. eststo morethan15: quietly estpost summarize SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT if ave15 == 1, detail
. eststo diff: quietly estpost ttest SALES_REV_TURN-SHORT_AND_LONG_TERM_DEBT, by(ave15) unequal
. esttab lessthan15 morethan15 diff, cells("mean(pattern(1 1 0) fmt(3)) sd(pattern(1 1 0)) median(pattern(1 1 0)) b(star pattern(0 0 1) fmt(3)) t(patt
> ern(0 0 1) par fmt(3))")
However, as you can see from my results I am missing column names for 1, 2 and 3, as well as a title line, and explanatory line as above. I am also missing the median.
Any help would be greatly appreciated,
Kayleigh
Comment