IDEAS home Printed from
   My bibliography  Save this article

Speaking Stata: Fun and fluency with functions


  • Nicholas J. Cox

    () (Durham University, UK)


Functions are the unsung heroes of Stata. This column is a tour of functions that might easily be missed or underestimated, with a potpourri of tips, tricks, and examples for a wide range of basic problems.

Suggested Citation

  • Nicholas J. Cox, 2011. "Speaking Stata: Fun and fluency with functions," Stata Journal, StataCorp LP, vol. 11(3), pages 460-471, September.
  • Handle: RePEc:tsj:stataj:v:11:y:2011:i:3:p:460-471
    Note: to access software from within Stata, net describe

    Download full text from publisher

    File URL:
    File Function: link to article purchase
    Download Restriction: no

    References listed on IDEAS

    1. David Kantor & Nicholas J. Cox, 2005. "Depending on conditions: a tutorial on the cond() function," Stata Journal, StataCorp LP, vol. 5(3), pages 413-420, September.
    2. Nicholas J. Cox, 2002. "Speaking Stata: On getting functions to do the work," Stata Journal, StataCorp LP, vol. 2(4), pages 411-427, November.
    3. William Gould, 2006. "Mata Matters: Precision," Stata Journal, StataCorp LP, vol. 6(4), pages 550-560, December.
    4. Bill Rising, 2010. "Stata tip 86: The missing() function," Stata Journal, StataCorp LP, vol. 10(2), pages 303-304, June.
    Full references (including those not matched with items on IDEAS)

    More about this item


    functions; numeric; string;


    Access and download statistics


    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:11:y:2011:i:3:p:460-471. 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) or (Lisa Gilmore). General contact details of provider: .

    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 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.

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

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.