Statalist


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

st: -dataout- available from SSC for exporting (outreg) files to Latex, Excel, Word formats‏


From   Roy Wada <[email protected]>
To   <[email protected]>
Subject   st: -dataout- available from SSC for exporting (outreg) files to Latex, Excel, Word formats‏
Date   Mon, 23 Mar 2009 14:55:24 -0700

Thanks to Kit Baum of Boston College, -dataout- is now available from SSC.
 
-dataout- can be used to import text files and export them into Latex, Excel, or
Word compatible files. Yes, you can use it convert the files created by the 
original -outreg- as well.
 
The program will do the same thing for the current dataset in memory. It will 
work with -collapse- and the such. Stata version 7 or better is required.
 
* exporting dataset in memory
sysuse auto, clear
collapse (mean) mpg headroom price weight, by(turn)
replace mpg=round(mpg,1)
dataout, save(myfile) word tex excel replace
 
* exporting any tab-delimited text file
dataout using myfile.txt, word tex excel replace
 
* exporting your outreg/outreg2 file
sysuse auto, clear
reg price rep head trunk
outreg using myfile.out, replace
reg price rep head turn gear
outreg using myfile.out, append
dataout using myfile.out, word tex excel replace
 
Roy
 
 
_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail®.
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index