help elabel load

Title

elabel load -- Define value labels from file

Syntax

elabel load
[ lblnamelist ]
[ iff eexp ]
using filename
[ , options ]

where lblnamelist may contain the wildcard characters
*, ~, and ?

filename is either a do-file
created by label save or a Stata dataset
created by uselabel

Description

elabel load defines value labels from a file containing
value label names and integer-to-text mappings.

If no file extension is specified, .dta is assumed. If
file extension is not .dta or .do, filename
is tried as a Stata dataset; if it is not a Stata dataset,
filename is treated as a do-file.

Options

add is the same as with label define,
and adds integer to text mappings to a value label.

modify is the same as with label define,
and modifies existing value labels.

replace is the same as with label define,
and redefines value labels.

lname(strvar) specifies the variable
name in filename that holds the value label names.

value(numvar) specifies the variable
name in filename that holds the values of value labels.

label(strvar) specifies the variable
name in filename that holds the labels, i.e., text of value labels.

Examples

Load example data

. sysuse nlsw88

Replace data in memory with value label information

. uselabel marlbl occlbl

. list , sepby(lname)

Save label information in file

. save mylabels

Clear memory and define occlbl from the previously saved file

. clear

. label list

. elabel load occlbl using mylabels

. label list

Erase file mylabels.dta from disk permanently

. erase mylabels.dta

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: label

if installed: elabel, labmask