help uselab -------------------------------------------------------------------------------
Title
uselab -- list value labels and variables using them
Syntax
uselab [namelist] [, variables]
where namelist is either a list of value label names, or, if variables is specified, a varlist
Description
uselab lists value label names and all variables they are attached to. It provides similar information to uselabel, but without creating a dataset. If namelist is not specified, all value labels in memory are listed together with all variables that use them.
Options
variables lists value labels attached to variables in namelist together with all other variables in the current dataset, that use the respective value labels.
Example
. sysuse nlsw88 ,clear (NLSW, 1988 extract)
. uselab
racelbl: race marlbl: married gradlbl: collgrad smsalbl: smsa indlbl: industry occlbl: occupation unionlbl: union
. uselab mar coll ,variables
marlbl: married gradlbl: collgrad
Saved results
uselab saves the following in r():
Macros r(lblname) varlist using value label lblname
Acknowledgements
The major part of the code used is from offical Stata's uselabel.
Author
Daniel Klein, University of Bamberg, klein.daniel.81@gmail.com
Also see
Online: uselabel, label