Hi everyone,
I would like to replace the value of X1 (SN1) by X2 (SN2) while keeping the original value label of X1 (SN1).
For example:
here I would like to : replace SN1 = 121 if SN1 == 61 while keeping the label "Frank Steinmeier". Ultimately I would like to do it for all values automatically. Replacing SN1 by SN2 while keeping the value labels of SN1.
Many Thank for all ideas.
Best, Jay
I would like to replace the value of X1 (SN1) by X2 (SN2) while keeping the original value label of X1 (SN1).
For example:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long SN1 float SN2 1 1 1 1 61 121 129 10 83 490 end label values SN1 SN1 label defSN11 "__NA__", modify label defSN161 "Frank Steinmeier", modify label defSN183 "Helene Fischer", modify label defSN1129 "Merz", modify
Many Thank for all ideas.
Best, Jay
Comment