IDEAS home Printed from https://ideas.repec.org/p/boc/usug04/16.html
   My bibliography  Save this paper

From datasets to resultssets in Stata

Author

Listed:
  • Roger Newson

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

Abstract

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.

Suggested Citation

  • Roger Newson, 2004. "From datasets to resultssets in Stata," United Kingdom Stata Users' Group Meetings 2004 16, Stata Users Group.
  • Handle: RePEc:boc:usug04:16
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/usug2004/Newson_handout1.pdf
    File Function: Lecture handout
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/usug2004/Newson_overhed2.pdf
    File Function: Lecture slides
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/usug2004/Newson_exampdo3.zip
    File Function: Archive of do-files
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. John Hendrickx, 2001. "Contrasts for categorical variables: update," Stata Technical Bulletin, StataCorp LP, vol. 10(59).
    2. Nicholas J. Cox, 2002. "Speaking Stata: On numbers and strings," Stata Journal, StataCorp LP, vol. 2(3), pages 314-329, August.
    3. 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)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Roger Newson, 2022. "Resultssets in resultsframes in Stata 16-plus," London Stata Conference 2022 01, Stata Users Group.
    2. Roger Newson, 2020. "From datasets to metadatasets in Stata," London Stata Conference 2020 01, Stata Users Group.
    3. Roger Newson, 2013. "Creating factor variables in resultssets and other datasets," United Kingdom Stata Users' Group Meetings 2013 01, Stata Users Group.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ben Jann, 2008. "A Stata implementation of the Blinder-Oaxaca decomposition," ETH Zurich Sociology Working Papers 5, ETH Zurich, Chair of Sociology, revised 14 May 2008.
    2. John Hendrickx, 2005. "Using standardised tables for interpreting Loglinear models," Quality & Quantity: International Journal of Methodology, Springer, vol. 38(5), pages 603-620, January.
    3. Nicholas J. Cox, 2011. "Speaking Stata: MMXI and all that: Handling Roman numerals within Stata," Stata Journal, StataCorp LP, vol. 11(1), pages 126-142, March.
    4. Ben Jann, 2008. "The Blinder–Oaxaca decomposition for linear regression models," Stata Journal, StataCorp LP, vol. 8(4), pages 453-479, December.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:usug04:16. See general information about how to correct material in RePEc.

    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 CitEc recognized a bibliographic reference but did not link an item in RePEc 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 RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

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

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.