Speaking Stata: Finding variables
Nicholas Cox
Stata Journal, 2010, vol. 10, issue 2, 281-296
Abstract:
A standard task in data management is producing a list of variable names showing which variables have specific properties, such as being of string type, or having value labels attached, or having a date format. A first-principles strategy is to loop over variables, checking one by one which have the property or properties concerned. I discuss this strategy in detail with a variety of examples. A canned alternative is offered by the official command ds or by a new command, findname, published formally with this column. Copyright 2010 by StataCorp LP.
Keywords: findname; ds; variable names; variable labels; value labels; types; formats; characteristics; data management (search for similar items in EconPapers)
Date: 2010
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj10-2/dm0048/
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
http://www.stata-journal.com/article.html?article=dm0048
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:10:y:2010:i:2:p:281-296
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 ().