On my dataset the individuals have two household identifiers from different sources, with the household ID being different from one variable to the other. My goal is to generate a new household ID which includes all the individuals related to a household. Data looks like this:
ID | Household_ID1 | Household_ID2 | Sex |
1 | 1 | 85 | 1 |
2 | 1 | . | 2 |
3 | 2 | 85 | 1 |
4 | 3 | 62 | 1 |
5 | 4 | 85 | 2 |
6 | 5 | 64 | 1 |
7 | 5 | . | 2 |
Thank you in advance for any help!
0 Response to Creating an ID variable from several group identifiers
Post a Comment