Speaking Stata: Finding variables

4Citations
Citations of this article
7Readers
Mendeley users who have this article in their library.

This article is free to access.

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.

Cite

CITATION STYLE

APA

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.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free