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]

Re: st: esttab rtfutil


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: esttab rtfutil
Date   Wed, 30 May 2012 14:43:04 +0100

I cannot speak for Ben Jann, the author of -esttab-. However, the -rtfutil- package was really designed to make documents with tables produced by -listtab-, downloadable from SSC. The -rtfrstyle- module of -rtfutil- makes it possible to define -listtab- row styles for making RTF tables.

I hope this help.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 30/05/2012 13:46, Jörg Eulenberger wrote:

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