help elabel dir

Title

elabel dir -- List names of value labels

Syntax

elabel dir [ pattern ] [ , options ]

where pattern is a series of characters, possibly containing the
wildcard characters * and ?.

Description

elabel dir lists, and returns in r(), the names of value
labels in memory and, optionally, value labels not in memory but attached
to variables in the dataset.

If pattern is specified, only value label names matching pattern
are listed and returned; see strmatch().

Options

nomemory additionally lists and returns value label names attached
to variables but not yet defined in memory. The option respects multilingual
datasets (see label language). Additional results are returned in
r().

current is for use with, and implies, nomemory and lists not
yet defined value labels in the current label language only.

Examples

Load example dataset

. sysuse nlsw88

Attach an undefined value label to variable age

. label values age agelbl

List all value label names

. elabel dir , nomemory

Saved results

elabel dir saves the following in r():

Macros

r(names) value label names in memory (same as
label dir)

With the nomemory option, elabel dir aditionally
saves the following in r():

Macros

r(used) label names in memory and attached to
at least one variable

r(undefined) label names not in memory but attached to
at least one variable

r(orphans) label names in memory but not attached
to any variable

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: label, label language

if installed: elabel