help mata elabel_unab()

Title

elabel_unab() -- Unabbreviate value label names

Syntax

string rowvector
elabel_unab(lblnamelist[,
nomem[,
mlang[,
abbrevok]]])

where lblnamelist is a string rowvector containing value label
names, possibly with wildcard characters *, ~, and ?;
abbrevok, nomem, and mlang are real scalar.

nomem!=0 specifies that nonexistent value label names are treated
as if they were defined in memory. Default is nomem=0.

mlang!=0 respects multilingual datasets (see label language)
when nomem!=0. Default is mlang=1.

abbrevok specifies whether lblname may be abbreviated. The
default is abbrevok=0, meaning that value label names may not be
abbreviated.

Description

elabel_unab() returns a row vector with all value label names that
match the lblnames in lblnamelst. When lblname does not
contain the wildcard characters * or ?, or when lblname
contains the wildcard character ~, only one name is allowed to
match.

Conformability

elabel_unab(lblnamelist[, nomem[, mlang[, abbrevok]]])
lblnamelist: 1 x c
nomem: 1 x 1
mlang: 1 x 1
abbrevok: 1 x 1

Diagnostics

elabel_unab() exits with Stata error messages if lblname is not a
valid name, if lblname is not found, and if lblname matches too
many or none value label name. elabel_unab() exits with error if no
value labels are found.

Source code

Distributed with the elabel package.

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: mata

if installed: elabel