Title

qlabel -- Quick label definitions

Syntax

qlabel [(] varelist [)] # "label"
[# "label" ...]
[, options]

Description

qlabel can replace multiple label define and label values statements.

qlabel uses the standard Stata label definition after the varelist. These value labels will be applied to all the variables in varelist.

Parentheses around the varlist are optional.

Ordinarily, the definition in qlabel replaces any existing definition with the same name, but see modify, below.

Options

name() specifies the value label name. If no name is specified, the label name will be the name of the first variable in varelist, with the added suffix _qlab.

filter ignores any non-existent variables in varelist. Without filter, a reference to a non-existent variable would cause an error.

modify causes the specified mappings to modify an existing label, instead of replacing it entirely. All of the variables in varelist must either use the same set of labels, or none.