Title

pair -- Label a numeric var with a corresponding string var

Syntax

pair varname varname [if] [in] [, keep ]

Description

pair creates value lables for a numeric variable based on the values in a string variable. A number cannot be paired with more than one string value.

Unless keep (or [if] [in]) is specified, the string variable will be dropped after the value labels are created.

The value labels get the name of the numeric variable, with "_pair" appended.