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

Speaking Stata: Self and others

Author

Listed:
  • Nicholas J. Cox

    (Durham University)

Abstract

Data for people in a family, firms in a sector, or members of any kind of group are often analyzed using data for the other members in each group. Examples are the number of older children for each child in a family or the mean investment of other firms in the same year. Many such problems yield to simple logic, spelled out here in terms of useful Stata functions and commands. Operations under by:, or an equivalent by() option, are frequently called for, while the egen command offers a key tool for many calculations. Even when looping is needed, some helpful tricks can be identified. Copyright 2014 by StataCorp LP.

Suggested Citation

  • Nicholas J. Cox, 2014. "Speaking Stata: Self and others," Stata Journal, StataCorp LP, vol. 14(2), pages 432-444, June.
  • Handle: RePEc:tsj:stataj:v:14:y:2014:i:2:p:432-444
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj14-2/dm0075/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=dm0075
    File Function: link to article purchase
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    groups; families; firms; counts; totals; means; by; egen;
    All these keywords.

    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:tsj:stataj:v:14:y:2014:i:2:p:432-444. 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.