Hi all,
I'm dealing with the Tanzanian National Panel Survey which has a lot of data sets I need to merge. However I have one key issue when merging. Using the household identification number (and the individual id number where appropriate) I merged m:m. The issue I came across was because of a specific question in the questionnaire that asked about livestock owned.
As shown below the merge created a duplication of an individual id 11 times. As we can see the data represents one household with 6 members who own 14 chickens. How can I avoid this? I need all this info and more in a single data set to run the regressions I want. From this I also want to calculate the Tropical Livestock Unit but that's another story.
The problem shown in the data:


If you need any more info just let me know.
Thanks,
Alex
I'm dealing with the Tanzanian National Panel Survey which has a lot of data sets I need to merge. However I have one key issue when merging. Using the household identification number (and the individual id number where appropriate) I merged m:m. The issue I came across was because of a specific question in the questionnaire that asked about livestock owned.
As shown below the merge created a duplication of an individual id 11 times. As we can see the data represents one household with 6 members who own 14 chickens. How can I avoid this? I need all this info and more in a single data set to run the regressions I want. From this I also want to calculate the Tropical Livestock Unit but that's another story.
The problem shown in the data:
If you need any more info just let me know.
Thanks,
Alex
Comment