EconPapers    
Economics at your fingertips  
 

Speaking Stata: Compared with

Nicholas Cox

Stata Journal, 2011, vol. 11, issue 2, 305-314

Abstract: Many problems in data management center on relating values to values in other observations, either within a dataset as a whole or within groups such as panels. This column reviews some basic Stata techniques helpful for such tasks, including the use of subscripts, summarize, by:, sum(), cond(), and egen. Several techniques exploit the fact that logical expressions yield 1 when true and 0 when false. Dividing by zero to yield missings is revealed as a surprisingly valuable device. Copyright 2011 by StataCorp LP.

Keywords: data management; panels; subscripting; summarize; by; sum(); cond(); egen; logical expressions (search for similar items in EconPapers)
Date: 2011
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj11-2/dm0055/
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=dm0055 link to article 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: https://EconPapers.repec.org/RePEc:tsj:stataj:v:11:y:2011:i:2:p:305-314

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

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-29
Handle: RePEc:tsj:stataj:v:11:y:2011:i:2:p:305-314