Hello,
after reading through the forum I found that esttab often causes issues. I hope you can help me with my problem.
I am trying to create a table in stata and export it to Word. In Stata this works fine, but as soon as I export it all the data is lost.
My data contains survey results. I have data from two groups (marked by either 1 or 2).
This is how my table looks like in Stata:
group | e(Y1_5) e(Y6_10) e(totalY) e(totalX)
-------------+----------------------------------------------------------------
1 | 2.886792 3.924528 6.811321 1.867925
2 | 3.041667 3.8125 6.854167 1.708333
1. I would like to have stata use my labels instead of variable names.
2. I would like to export this into Word. So far I used the code (see above) but that did not work (i.e. I got an empty table).
This is what I get in Word:
Thank you so much in advance!
after reading through the forum I found that esttab often causes issues. I hope you can help me with my problem.
I am trying to create a table in stata and export it to Word. In Stata this works fine, but as soon as I export it all the data is lost.
My data contains survey results. I have data from two groups (marked by either 1 or 2).
This is how my table looks like in Stata:
group | e(Y1_5) e(Y6_10) e(totalY) e(totalX)
-------------+----------------------------------------------------------------
1 | 2.886792 3.924528 6.811321 1.867925
2 | 3.041667 3.8125 6.854167 1.708333
Code:
global list1 var1 var2 var3 var4 global format1 rtf estpost tabstat $list1, by(group) stat(mean) esttab . using Table1.$format1, replace label cells("mean(fmt(%12.0fc)")
2. I would like to export this into Word. So far I used the code (see above) but that did not work (i.e. I got an empty table).
This is what I get in Word:
(1) | |
mean | |
Observations | 101 |
Thank you so much in advance!
Comment