help elabel numlist

Title

elabel numlist -- Parse numeric list

Syntax

elabel numlist
"numlist" [ , options ]

where numlist contains numlist_elements
and may contain sequences of missing value codes, such as
.a/.c and .a(3).o.

Description

elabel numlist expands a numeric list including sequence
operators. The command is similar to Stata's numlist
command but additionally expands sequences of (extended) missing value
codes, such as .a/.c, treating the distance between successive
missing value codes as 1.

Only integer values or extended missing values are allowed in
numlist; real values and system missing values (.) are
not allowed.

Options

realok allows real values in numlist.

sysmissok allows system missing values in numlist.

local(lmacname) stores the expanded numlist in local macro
lmacname; nothing is returned in r().

Examples

. elabel numlist "42 .a/.c"

. display "`r(numlist)'"

Saved results

elabel numlist saves the following in r():

Macros

r(numlist) expanded numlist

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: label, label language

if installed: elabel