EconPapers    
Economics at your fingertips  
 

Speaking Stata: Making it count

Nicholas Cox ()

Stata Journal, 2007, vol. 7, issue 1, pages 117-130

Abstract: The count command has one simple role, to count observations in general or that satisfy some condition(s). This task can be useful when some larger problem pivots on counting, especially if count is used with a loop over observations or variables. I use various problems, mostly of data management, as examples. I also make comparisons with the use of N, summarize, and egen for the same or similar problems.

Keywords: count; counting; data management; dropping variables; finding matches (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:1:p:117-130

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:1:p:117-130