Speaking Stata: Making it count
Nicholas J. Cox
Department of Geography
Durham University, UK
n.j.cox@durham.ac.uk
|
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.
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
Contact StataCorp
Contact service@stata-journal.com
if you have questions about the Stata Journal.
© Copyright 2001–2013 StataCorp LP. Terms of use. Privacy policy.
|