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

A little bit of Stata programming goes a long way..

Author

Listed:
  • Christopher F. Baum

    (Department of Economics, Boston College, Chestnut Hill, MA)

Abstract

This tutorial will discuss a number of elementary Stata programming constructs and discuss how they may be used to automate and robustify common data manipulation, estimation and graphics tasks. Those used to the syntax of other statistical packages or programming languages must adopt a different mindset when working with Stata to take full advantage of its capabilities. Some of Stata's most useful commands for handling repetitive tasks: -forvalues-, -foreach-, -egen-, -local- and -matrix- are commonly underutilized by users unacquainted with their power and ease of use. While relatively few users may develop ado-files for circulation to the user community, nearly all will benefit from learning the rudiments of use of the -program-, -syntax- and -return- statements when they are faced with the need to perform repetitive analyses. Worked examples making use of these commands will be presented and discussed in the tutorial.

Suggested Citation

  • 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.
  • Handle: RePEc:boc:usug05:16
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/EC-P/WP612.pdf
    File Function: main text
    Download Restriction: no

    File URL: http://repec.org/usug2005/baum_SUGUK05_handout.pdf
    File Function: presentation slides
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Nicholas J. Cox, 2001. "Speaking Stata: How to repeat yourself without going mad," Stata Journal, StataCorp LP, vol. 1(1), pages 86-97, November.
    2. Ian Watson, 2005. "Further processing of estimation results: Basic programming with matrices," Stata Journal, StataCorp LP, vol. 5(1), pages 83-91, March.
    Full references (including those not matched with items on IDEAS)

    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. Nicholas J. Cox, 2010. "Speaking Stata: The statsby strategy," Stata Journal, StataCorp LP, vol. 10(1), pages 143-151, March.
    2. Nicholas J. Cox, 2002. "Speaking Stata: How to face lists with fortitude," Stata Journal, StataCorp LP, vol. 2(2), pages 202-222, May.

    More about this item

    JEL classification:

    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

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