help elabel list

Title

elabel list -- List names and contents of value labels

Syntax

elabel list
[ elblnamelist ]
[ iff eexp ]
[ , options ]

Description

elabel list lists, and returns in r(), the names, integer
values, and associated text of value labels stored in memory.

Options

varlist additionally returns, in r(varlist), the
variable names that have lblname attached (in the current
label language). For
multilingual datasets, r(lvarlists)
contains (languagename varlist) for any
additional label language in which lblname is attached to
at least one variable.

nomemory treats value label names attached to variables as if they
were defined in memory. The option respects multilingual datasets
(see label language).

current is for use with, and implies, nomemory and restricts
not yet defined value labels to those in the current label language.

Examples

Load example dataset

. sysuse nlsw88

List names and contents of all value labels

. elabel list

List name and contents of value label occlbl

. elabel list occlbl

List name and contents of the value label attached to collgrad

. elabel list (collgrad)

Saved results

elabel list saves the following in r():

Scalars

r(min) minimum nonmissing value

r(max) maximum nonmissing value

r(hasmiss) whether extended missing
values are labeled

r(nemiss) number of extended missing
values

r(k) number of mapped values

Macros

r(name) value label name

r(values) integer values

r(labels) text associated with integer values

With the varlist option, elabel list additionally
saves the following in r():

Scalars

r(k_languages) number of label
languages, excluding current language

Macros

r(varlist) variables that have lblname attached
in current language

r(lvarlists) variables that have lblname
attached in additional languages

r(language) current label language

r(languages) list of label languages, excluding
current language

With the nomemory or current option, elabel list
additionally saves the following in r():

Scalars

r(exists) whether value label exists
(i.e., is defined in memory)

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: label, label language

if installed: elabel