Combine two or more sets of value labels
labvalcombine vallblname1 vallblname2 [vallblname3 ...] [ , lblname(lblname) ]
Description
labvalcombine combines two or more sets of value labels into one. Note that existing definitions may be overwritten by the definitions in value label sets named later in the command. Thus if the command is labvalcombine lbl1 lbl2, definitions in lbl2 will overwrite those in lbl1 for the same values. Users should specify the order of names accordingly. A safe strategy is to use a new name for the set, but users can make their own choices.
By default the first name specified will be used for the new set of value labels.
The combined set of definitions is listed. This display may be suppressed with quietly.
Options
lblname() supplies a name for the combined set. This may be a new name or an existing name.
Examples
. label define lbl1 1 "one" 2 "two" 3 "three" . label define lbl2 2 "deux" 3 "three" 4 "four" . labvalcombine lbl1 lbl2, lblname(both) . labvalcombine lbl1 lbl2, lblname(lbl2) . labvalcombine lbl1 lbl2
Author
Nicholas J. Cox, Durham University, U.K. n.j.cox@durham.ac.uk
Acknowledgments
Jorge Eduardo Pérez Pérez suggested this problem on Statalist.
Also see
On-line: help for [D] label