Sunday, July 17, 2016

Command to Search Variable Names and Labels in Stata [Data]


Feel silly for not figuring this out earlier. For a very long time I just do a desc, fullname to have Stata output the variable names and labels. I would then copy / paste the info into a text file and use the "find" command (in notepad, etc.) as needed.


The LOOKFOR command, i.e., lookfor search-text-string, works much better. Furthermore, the search-text-string is case insensitive.