IDEAS home Printed from
MyIDEAS: Login to save this paper or follow this series

From datasets to resultssets in Stata

  • Roger Newson


    (Department of Public Health Sciences, King's College, London)

A resultsset is a Stata dataset created as output by a Stata program. It can be used as input to other Stata programs, which may in turn output the results as publication-ready plots or tables. Programs that create resultssets include xcontract, xcollapse, parmest, parmby and descsave. Stata resultssets do a similar job to SAS output data sets, which are saved to disk files. However, in Stata, the user typically has the options of saving a resultsset to a disk file, writing it to the memory (overwriting any pre-existing data set), or simply listing it. Resultssets are often saved to temporary files, using the tempfile command. This lecture introduces programs that create resultssets, and also programs that do things with resultssets after they have been created. listtex outputs resultssets to tables that can be inserted into a Microsoft Word, HTML or LaTeX document. eclplot inputs resultssets and creates confidence interval plots. Other programs, such as sencode and tostring, process resultssets after they are created and before they are listed, tabulated or plotted. These programs, used together, have a power not always appreciated if the user simply reads the on-line help for each package.

If you experience problems downloading a file, check if you have the proper application to view it first. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL:
File Function: Lecture handout
Download Restriction: no

File URL:
File Function: Lecture slides
Download Restriction: no

File URL:
File Function: Archive of do-files
Download Restriction: no

Paper provided by Stata Users Group in its series United Kingdom Stata Users' Group Meetings 2004 with number 16.

in new window

Date of creation: 30 Jun 2004
Date of revision:
Handle: RePEc:boc:usug04:16
Contact details of provider: Web page:

More information through EDIRC

References listed on IDEAS
Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.:

as in new window
  1. John Hendrickx, 2000. "Contrasts for categorical variables: update," Stata Technical Bulletin, StataCorp LP, vol. 9(54).
  2. John Hendrickx, 2000. "Using categorical variables in Stata," Stata Technical Bulletin, StataCorp LP, vol. 9(52).
Full references (including those not matched with items on IDEAS)

This item is not listed on Wikipedia, on a reading list or among the top items on IDEAS.

When requesting a correction, please mention this item's handle: RePEc:boc:usug04:16. See general information about how to correct material in RePEc.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F Baum)

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

If references are entirely missing, you can add them using this form.

If the full references list an item that is present in RePEc, but the system did not link to it, you can help with this form.

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your profile, as there may be some citations waiting for confirmation.

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

This information is provided to you by IDEAS at the Research Division of the Federal Reserve Bank of St. Louis using RePEc data.