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

Speaking Stata: How to move step by: step

Author

Listed:
  • Nicholas J. Cox

    (University of Durham, UK)

Abstract

The by varlist: construct is reviewed, showing how it can be used to tackle a variety of problems with group structure. These range from simply doing some calculations for each of several groups of observations to doing more advanced manipulations making use of the fact that with this construct, subscripts and the built-ins _n and _N are all interpreted within groups. A fairly complete tutorial on numerical evaluation of true and false conditions is included. Copyright 2002 by Stata Corporation.

Suggested Citation

  • Nicholas J. Cox, 2002. "Speaking Stata: How to move step by: step," Stata Journal, StataCorp LP, vol. 2(1), pages 86-102, February.
  • Handle: RePEc:tsj:stataj:v:2:y:2002:i:1:p:86-102
    Note: Correction: p.87, 3d para, "and which in turn go AFTER uppercase letters..."
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/sjpdf.html?articlenum=pr0004
    Download Restriction: no
    ---><---

    Citations

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


    Cited by:

    1. Nicholas J. Cox, 2011. "Speaking Stata: Compared with..," Stata Journal, StataCorp LP, vol. 11(2), pages 305-314, June.
    2. Nicholas J. Cox, 2008. "Stata tip 71: The problem of split identity, or how to group dyads," Stata Journal, StataCorp LP, vol. 8(4), pages 588-591, December.
    3. Nicholas J. Cox, 2007. "Speaking Stata: Counting groups, especially panels," Stata Journal, StataCorp LP, vol. 7(4), pages 571-581, December.
    4. Nicholas J. Cox, 2007. "Speaking Stata: Turning over a new leaf," Stata Journal, StataCorp LP, vol. 7(3), pages 413-433, September.
    5. L. Philip Schumm, 2006. "Stata tip 28: Precise control of dataset sort order," Stata Journal, StataCorp LP, vol. 6(1), pages 144-146, March.
    6. Nicholas J. Cox & Gary M. Longton, 2008. "Speaking Stata: Distinct observations," Stata Journal, StataCorp LP, vol. 8(4), pages 557-568, December.
    7. Nicholas J. Cox, 2011. "Stata tip 101: Previous but different," Stata Journal, StataCorp LP, vol. 11(3), pages 472-473, September.
    8. Nicholas J. Cox, 2007. "Speaking Stata: Identifying spells," Stata Journal, StataCorp LP, vol. 7(2), pages 249-265, June.
    9. Nicholas J. Cox, 2002. "Speaking Stata: On numbers and strings," Stata Journal, StataCorp LP, vol. 2(3), pages 314-329, August.
    10. Nicholas J. Cox, 2005. "Speaking Stata: The protean quantile plot," Stata Journal, StataCorp LP, vol. 5(3), pages 442-460, September.
    11. Nicholas J. Cox, 2012. "Speaking Stata: Output to order," Stata Journal, StataCorp LP, vol. 12(1), pages 147-158, March.

    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:2:y:2002:i:1:p:86-102. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.