Home  >>  Archives  >>  Volume 7 Number 1  >>  pr0029

The Stata Journal
Volume 7 Number 1: pp. 117-130



Subscribe to the Stata Journal
cover

Speaking Stata: Making it count

Nicholas J. Cox
Department of Geography
Durham University, UK
[email protected]
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.
Terms of use     View this article (PDF)

View all articles by this author: Nicholas J. Cox

View all articles with these keywords: count, counting, data management, dropping variables, finding matches

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS