Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: logout for twoway tabulate


From   Roy Wada <roywada@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: logout for twoway tabulate
Date   Fri, 2 Oct 2009 12:18:40 -0700

> 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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index