Herve Stolowy wrote:
I run the following command with -table-:
table country ar_english year if (year==2003 | year==2004), row col
------------------------------------------------------
| year and ar_english
| ------- 2003 ------ ------- 2004 ------
country | 0 1 Total 0 1 Total
----------+-------------------------------------------
ARG | 55 6 61 52 8 60
AUT | 12 33 45 11 33 44
BEL | 15 58 73 13 54 67
BRA | 196 27 223 188 22 210
CHE | 29 113 142 27 112 139
CHL | 102 12 114 103 8 111
CHN | 75 111 186 78 114 192
...
|
Total | 2,347 2,122 4,469 2,266 1,978 4,244
I would like to know if there is a way to get this table in a
tab-delimited format? I tried with -tabout- (downloadable from ssc) but
did not find the solution.
-----------------------------------------------------------------------
-table- leaves little behind, so -tabout- or other commands have
little to work with.
I usually do this:
1. Select (highlight) the table, using the mouse
2. Right-click and select -copy table-
3. Open Excel and paste the table
4. If needed, format cells (decimals etc.)
5. Copy-and-paste to my word processor document.
Step 2 actually puts tab-delimited text to the clipboard.
You could also save a tab-delimited file from Excel.
For mass production this is not practical, for a single table it works
fine.
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [email protected]
__________________________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/