EconPapers    
Economics at your fingertips  
 

On the shoulders of giants, or not reinventing the wheel

Nicholas Cox

German Stata Users' Group Meetings 2019 from Stata Users Group

Abstract: Part of the art of coding is writing as little as possible to do as much as possible. In this presentation, I expand on this truism and give examples of Stata code to yield tables and graphs in which most of the real work is delegated to workhorse commands. In tabulations and listings, the better known commands sometimes seem to fall short of what you want. However, some preparation commands (such as generate, egen, collapse, or contract) followed by list, tabdisp, or tab can get you a long way. In graphics, a key principle is that graph twoway is the most general command even when you do not want rectangular axes. Variations on scatter and line plots are precisely that, variations on scatter and line plots. More challenging illustrations include commands for circular and triangular graphics, in which x and y axes are omitted with an inevitable but manageable cost in recreating scaffolding, titles, labels, and other elements. The examples range in scope from a few lines of interactive code to fully developed programs. This presentation is thus pitched at all levels of Stata users.

Date: 2019-07-10
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/dsug2019/germany19_cox.pdf presentation materials (application/pdf)

Related works:
Working Paper: On the shoulders of giants, or not reinventing the wheel (2017) Downloads
Working Paper: On the shoulders of giants, or not reinventing the wheel (2017) Downloads
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:dsug19:02

Access Statistics for this paper

More papers in German Stata Users' Group Meetings 2019 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-04-14
Handle: RePEc:boc:dsug19:02