> after a long search through all the different possibillities to get
> stata sum and tab outputs into latex and excel I finally found the
> logout command.
>
> It works great for tabulate twoway without percentages. But including
> column percentages leads to a percentage line that is shifted to the
> left. In other words, the command misinterprets the blank field below
> the variable label.
You need to lop off the extraneous stuff at the top. The following
will do the job:
webuse dose, clear
caplog using mylog.txt, replace: tab dose function, col
chewfile using mylog.txt, begin(10) end(.) save(chewed.txt) replace
logout, use(chewed.txt) clear fix
logout, save(C:\mytable) tex excel replace
This should be all automated (i.e. integrated into logout as an
option) but I'm a
little busy.
Roy
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/