EconPapers    
Economics at your fingertips  
 

Speaking Stata: Turning over a new leaf

Nicholas Cox ()

Stata Journal, 2007, vol. 7, issue 3, pages 413-433

Abstract: Stem-and-leaf displays have been widely taught since John W. Tukey publicized them energetically in the 1970s. They remain useful for many distributions of small or modest size, especially for showing fine structure such as digit preference. Stata’s implementation stem produces typed text displays and has some inevitable limitations, especially for comparison of two or more displays. One can re-create stem-and-leaf displays with a few basic Stata commands as scatterplots of stem variable versus position on line with leaves shown as marker labels. Comparison of displays then becomes easy and natural using scatter, by(). Back-to-back presentation of paired displays is also possible. I discuss vari- ants on standard stem-and-leaf displays in which each distinct value is a stem, each distinct value is its own leaf, or axes are swapped. The problem shows how one can, with a few lines of Stata, often produce standard graph forms from first principles, allowing in turn new variants. I also present a new program, stemplot, as a convenience tool.

Keywords: stemplot; stem-and-leaf; graphics; distributions; digit preference (search for similar items in EconPapers)
Date: 2007

Downloads: (external link)
http://www.stata.com/bookstore/sjj.html link to individual issue purchase

Related works:
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: http://EconPapers.repec.org/RePEc:tsj:stataj:v:7:y:2007:i:3:p:413-433

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is edited by H. Joseph Newton and Nicholas J. Cox

More articles in Stata Journal from StataCorp LP
Series data maintained by Christopher F. Baum ().

 
Page updated 2009-11-24
Handle: RePEc:tsj:stataj:v:7:y:2007:i:3:p:413-433