IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v10y2010i1p143-151.html
   My bibliography  Save this article

Speaking Stata: The statsby strategy

Author

Listed:
  • Nicholas J. Cox

    (Durham University, UK)

Abstract

The statsby command collects statistics from a command yielding r-class or e-class results across groups of observations and yields a new reduced dataset. statsby is commonly used to graph such data in comparisons of groups; the subsets and total options of statsby are particularly useful in this regard. In this article, I give examples of using this approach to produce box plots and plots of confidence intervals.

Suggested Citation

  • Nicholas J. Cox, 2010. "Speaking Stata: The statsby strategy," Stata Journal, StataCorp LP, vol. 10(1), pages 143-151, March.
  • Handle: RePEc:tsj:stataj:v:10:y:2010:i:1:p:143-151
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj10-1/gr0045/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=gr0045
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Roger Newson, 2000. "A program for saving a model fit as a dataset," Stata Technical Bulletin, StataCorp LP, vol. 9(49).
    2. Nicholas J. Cox, 2001. "Speaking Stata: How to repeat yourself without going mad," Stata Journal, StataCorp LP, vol. 1(1), pages 86-97, November.
    3. Nicholas J. Cox, 2008. "Speaking Stata: Between tables and graphs," Stata Journal, StataCorp LP, vol. 8(2), pages 269-289, June.
    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. Yulia V. Marchenko & Marc G. Genton, 2010. "A suite of commands for fitting the skew-normal and skew-t models," Stata Journal, StataCorp LP, vol. 10(4), pages 507-539, December.
    2. Kristin J. Kleinjans & Andrew Gill, 2022. "Intergenerational Transmission of Disadvantage: Negative Parental Selection, Economic Upheaval, and Smoking," Journal of Family and Economic Issues, Springer, vol. 43(4), pages 799-814, December.

    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. Roger Newson & The ALSPAC Study Team, 2003. "Multiple-test procedures and smile plots," Stata Journal, StataCorp LP, vol. 3(2), pages 109-132, June.
    2. Christopher F. Baum, 2005. "A little bit of Stata programming goes a long way..," United Kingdom Stata Users' Group Meetings 2005 16, Stata Users Group, revised 08 Jun 2005.
    3. Nicholas J. Cox & Natasha L. M. Barlow, 2008. "Stata tip 62: Plotting on reversed scales," Stata Journal, StataCorp LP, vol. 8(2), pages 295-298, June.
    4. Nicholas J. Cox, 2002. "Speaking Stata: How to face lists with fortitude," Stata Journal, StataCorp LP, vol. 2(2), pages 202-222, May.

    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:tsj:stataj:v:10:y:2010:i:1:p:143-151. 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 or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.