Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: texdoc

From   Roger Newson <>
To   "" <>
Subject   Re: st: texdoc
Date   Thu, 20 May 2010 10:53:54 +0100

A possible tool for doing reproducible research, if your colleagues prefer Microsoft-readable output, is the -rtfutil- package, downloadable from SSC (if you have Stata Version 11) and from my website (if you have Stata Version 10). The -rtfutil- package is intended for use with the -listtab- package, also downloadable from SSC (if you have Stata Version 11) and from my website (if you have Stata Version 10).

The -listtab- and -rtfutil- packages are both part of a suite of programs for producing output datasets (or resultssets), which are Stata datasets with one observation per "result". These "results" are typically (but not always) confidence intervals. Resultssets are useful if you want to plot results (as for a presentation) as well as tabulating them (for a submitted journal article). More about resultssets can be found in Newson (2004). Note that the -listtab- package is intended to replace the older -listtex- package.

I hope this helps.

Best wishes



Newson R. From datasets to resultssets in Stata. Presented at the 10th UK Stata User Meeting, 28-29 June, 2004. Download from

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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

On 17/05/2010 19:42, Austin Nichols wrote:
Nick, Michael Norman Mitchell:
In principle, it should be straightforward to do this kind of thing in
RTF; see e.g. or try:

sysuse auto, clear
qui reg mpg weight
tempfile t
esttab using `t', rtf
type `t'

for an example of what the output would look like.

One issue is, when Microsoft changes the RTF standard or the way Word
reads RTF files, they might break whatever you wrote, without warning
or apology, so a programmer would have to stay on top of those kinds
of changes.

On Mon, May 17, 2010 at 2:28 PM, Nick Cox<>  wrote:
My short answer is No.

My longer answer is that it's difficult to imagine how that would be
done -- and (not least) who would do it. Does Word lend itself to this,
even in principle?

One near approach would seem to be those programs with varying degrees
of support for HTML output. -findit html- finds several.


Michael Norman Mitchell

   Thanks for posting this to bring this to our (and my) attention. I
always believe very strongly in using this kind of "weaving" approach
and find it very efficient. Are you (or is anyone on the Statalist)
aware of a tool similar to this that weaves comments, commands, output,
and graphs into a Word document? At my work, we are in constant need of
creating such integrated outputs and the standard format is a Word

On 2010-05-16 9.14 PM, Airey, David C wrote:

I just wanted to remind users about Ben Jann's program "texdoc" as one
solution for combining Stata results and graphs with documentation, in a
"weaving" fashion, similar to R and Sweave. It works well with
relatively simple documents one might produce for a course.

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index