IDEAS home Printed from https://ideas.repec.org/a/bla/ausecr/v57y2024i3p302-313.html
   My bibliography  Save this article

Programming Style: Suggested Guidelines for Writing Code

Author

Listed:
  • Joe Hirschberg
  • Jenny Lye

Abstract

Since computer code has become elemental in current research it has become imperative that code should be written clearly and in good style. A program written in a clear, well‐written style is easier to debug and is more useful to those who may want to replicate your work, extend it, speed it up or borrow from it. Clearly, written code is also a useful tool in the training of future researchers. In this paper, we suggest a set of style guidelines and we provide examples of how particular elements of code can be done using the statistical packages Stata, SAS and R. We also present recommendations for how to write code.

Suggested Citation

  • Joe Hirschberg & Jenny Lye, 2024. "Programming Style: Suggested Guidelines for Writing Code," Australian Economic Review, The University of Melbourne, Melbourne Institute of Applied Economic and Social Research, vol. 57(3), pages 302-313, September.
  • Handle: RePEc:bla:ausecr:v:57:y:2024:i:3:p:302-313
    DOI: 10.1111/1467-8462.12567
    as

    Download full text from publisher

    File URL: https://doi.org/10.1111/1467-8462.12567
    Download Restriction: no

    File URL: https://libkey.io/10.1111/1467-8462.12567?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    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:bla:ausecr:v:57:y:2024:i:3:p:302-313. 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: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/mimelau.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.