help elabel values

Title

elabel values -- Attach value labels to variables

Syntax

Basic syntax

elabel values
varlist
[ elblname|. ]
[ , nofix ]

Extended syntax

elabel values
(varlist)
({elblname|.}
[ {elblname|.} ... ])
[ , nofix ]

Description

elabel values attaches a value label to the variables in
varlist. Specifying . instead of elblname detaches
any value label from varlist; value labels are not deleted from
memory.

In the basic syntax, if varlist is a single token, such as varname,
_all, or varname-varname, specifying
. is the same as omitting elblname.

In the extended syntax, specify as many elblnames as there are
variables in varlist; the mapping of elblnames to varlist
is one-to-one. If only one elblname is specified, the respcetive
value label is attached to all variables in varlist; this is the
same as the basic syntax, except that . must be specified to
detach value labels from varlist.

Options

nofix is the same as nofix with label values.

Examples

Load example dataset

. sysuse nlsw88

Define value label yesno

. elabel define yesno 0 "no" 1 "yes"

Attach value label yesno to variable south

. elabel values south yesno

Attach the value label associated with south to variable c_city

. elabel values c_city (south)

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: label, label language

if installed: elabel, elabel varvaluelabel