Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: esttab rtfutil


From   Jörg Eulenberger <j.eulenberger@web.de>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: esttab rtfutil
Date   Wed, 30 May 2012 14:46:05 +0200

Dear Statalisters,

i want to use the esttab-command in combination with rtfutil.
Is it possible to get the esttab-output in the rtf-output?

The Syntax are:

             set more off
             sysuse auto, clear
             tempname handle1
             rtfopen `handle1' using "mydoc1.rtf", replace
             file write `handle1' _n  _tab  "{\pard\b Auswertung Sofub
\par}" _tab  _n
             file write `handle1' _n "{\line}"
             
             twoway scatter mpg price,  mlabel(make) || lfitci mpg price
             graph export "myplot1.wmf", replace
             
             file write `handle1' "{\pard\b Abbildung 1:  Test 1\par}" _n
             rtflink `handle1' using "myplot1.wmf"
             file write `handle1' _n "{\line}"
             
             twoway scatter price mpg,  mlabel(make) by(for)
             graph export "myplot2.wmf", replace
             file write `handle1' "{\pard\b Abbildung 2:  Test 2\par}" _n
             rtflink `handle1' using "myplot2.wmf"

             estpost tabulate  foreign rep78
             esttab using `handle1', rtf  cell(colpct(fmt(1))) unstack
noobs app varlabels(`e(labels)') varw(30) ///
             nonumber nomtitle collabels(none)eqlabels(,
lhs("Test"))mlabel("Test2")
             
             rtfclose `handle1'
             !start mydoc1.rtf

The esttab-output are not include in mydoc1.rtf. What's wrong?
Thanks for help,
Jörg



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index