Affiliation:
1. Department of Economics The University of Melbourne Victoria 3010 Australia
Abstract
AbstractSince 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.
Reference11 articles.
1. Suggestions on Stata programming style;Cox N.;The Stata Journal,2005
2. Speaking Stata: Loops, again and again;Cox N.;The Stata Journal,2020
3. Fiva J. Værøy T.andHerrera F.2021 August 9 ‘For applied economics @Statais still the only game in town’ viewed 3 December 2021 .
4. Gentzkow M.andShapiro J. 2014 ‘Code and Data for the Social Sciences: A Practitioner's Guide’ viewed 11 October 2021 .