Bookmark and Share

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

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

st: esttab rtfutil

From   Jörg Eulenberger <>
To   "''" <>
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(,
             rtfclose `handle1'
             !start mydoc1.rtf

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

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index