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. © 2010 StataCorp LP.
Author supplied keywords
Cite
CITATION STYLE
Cox, N. J. (2010). Speaking Stata: Finding variables. Stata Journal, 10(2), 281–296. https://doi.org/10.1177/1536867x1001000208
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.