Hi,
I am trying to merge two datasets and they happen to have the same variable label names.
So when I merge 1:1 using individual id, the labels overlap.
Below are parts of the datasets that contain the same name of variable labels.
EX) 'label1' and 'label2' will be misleading.
I am trying to merge two datasets and they happen to have the same variable label names.
So when I merge 1:1 using individual id, the labels overlap.
Below are parts of the datasets that contain the same name of variable labels.
EX) 'label1' and 'label2' will be misleading.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte b1 long b2 byte(b3 b4) 18 . . . 18 . . . 18 . . . 18 . . . 18 . . . 18 . . . 18 . . . 1 . . . 18 . . . 18 . . . 6 2026 1 4 18 . . . 18 . . . 18 . . . 18 . . . 6 2208 1 6 3 2208 1 3 2 2839 1 0 1 . . . 18 . . . 8 2326 1 11 8 2190 1 10 18 . . . 18 . . . 8 1028 1 11 18 . . . 18 . . . 18 . . . 8 1033 1 11 18 . . . 8 2055 1 11 8 1033 1 8 18 . . . 96 . . . 8 1038 1 8 6 1035 1 3 1 . . . 18 . . . 18 . . . 18 . . . 18 . . . 8 1028 1 10 8 1033 1 9 5 1014 1 6 18 . . . end label values b1 labels0 label def labels0 1 "Nursery/day care", modify label def labels0 2 "Basic/infant/kindergarten", modify label def labels0 3 "Primary", modify label def labels0 5 "All age school", modify label def labels0 6 "Primary & Junior high", modify label def labels0 8 "Secondary High", modify label def labels0 11 "University", modify label def labels0 18 "None", modify label values b3 labels1 label def labels1 1 "Public", modify label def labels1 2 "Private", modify label values b4 labels2 label def labels2 2 "Primary 1-3", modify label def labels2 3 "Primary 4-6", modify label def labels2 4 "Grade 7", modify label def labels2 5 "Grade 8", modify label def labels2 6 "Grade 9", modify label def labels2 8 "Grade 11", modify label def labels2 9 "Grade 12", modify label def labels2 10 "Grade 13", modify
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(hhmember whynotme sex) 2 4 2 1 . 2 2 1 2 2 1 1 2 1 1 2 1 1 1 . 2 2 2 1 1 . 2 1 . 2 1 . 2 1 . 1 1 . 2 1 . 2 1 . 2 1 . 2 1 . 2 1 . 1 1 . 1 1 . 2 1 . 1 1 . 1 1 . 2 1 . 2 2 6 1 1 . 2 1 . 2 1 . 1 1 . 1 1 . 1 3 . 2 1 . 1 1 . 1 1 . 2 1 . 2 1 . 2 1 . 1 1 . 2 1 . 1 1 . 2 1 . 2 1 . 2 end label values hhmember labels1 label def labels1 1 "Still a member", modify label def labels1 2 "No Longer a member", modify label def labels1 3 "New member", modify label values whynotme labels2 label def labels2 1 "Migrated to other household in Parish", modify label def labels2 2 "Migrated to another parish", modify label def labels2 4 "Died", modify label def labels2 6 "other", modify label values sex labels3 label def labels3 1 "Male", modify label def labels3 2 "Female", modify
Comment