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: estabb and rtfutil combination.
From
Amadou DIALLO <[email protected]>
To
statalist <[email protected]>
Subject
st: estabb and rtfutil combination.
Date
Sun, 10 Feb 2013 13:07:49 +0100
Hi,
I'm trying unsuccessfully to combine results produced by 2 different
commands (rtfopen/file and estabb) into a single rtf file. The problem
is that rtfutil is very good at handling text and graphs but I findit
difficult to produce nice tables with desired formatting and
characteristics attributes that I want them to have (which estabb does
very well). Is there a workaround? See sample code below
(esttabrtfopenexample produce blank page while esttabrtfopenexample2
displays tables). Thanks in advance.
clear
sysuse auto
tempname handle
rtfopen `handle' using "esttabrtfopenexample.rtf", replace
file write `handle' _n "{\line}"
file write `handle' _n "{\header\pard\sl360\slmult1\qr\plain\f0\chpgn
{\i \fs20 Auto data analysis} \par}"
eststo tabl: estpost ta rep for
esttab tabl using "esttabrtfopenexample.rtf" , cell(colpct(fmt(2)))
label noobs varwidth(10) modelwidth(8) addnote("Source: Author")
append
esttab tabl using "esttabrtfopenexample2.rtf" , cell(colpct(fmt(2)))
label noobs varwidth(10) modelwidth(8) addnote("Source: Author")
replace
rtfclose `handle'
exit
--
Amadou B. DIALLO, PhD.
Senior Economist, AfDB.
[email protected]
+21671101789
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/