Hello!
So I've recently been working with household data sets that describes observations in both a serial number for the household, and a number (usually 1-3) describing the individual within that household. I was hoping to merge two of the datasets however STATA comes up with the message that the serial number and the individual number do not uniquely identify the observations, and I'm assuming this is because the individual number is frequently 'repeated' despite referencing different individuals. I wondered if it was possible to create a new variable through merging that would identify both the household and individual number in an easier way.
For example, if the serial number was 1107 and there were two different individuals in the household, rather than having observations both with serial numbers 1107 and then individual numbers 1 and 2, I could create a variable through merging the two that looked like 1107/1 and 1107/2, or something like that.
Thanks in advance!
So I've recently been working with household data sets that describes observations in both a serial number for the household, and a number (usually 1-3) describing the individual within that household. I was hoping to merge two of the datasets however STATA comes up with the message that the serial number and the individual number do not uniquely identify the observations, and I'm assuming this is because the individual number is frequently 'repeated' despite referencing different individuals. I wondered if it was possible to create a new variable through merging that would identify both the household and individual number in an easier way.
For example, if the serial number was 1107 and there were two different individuals in the household, rather than having observations both with serial numbers 1107 and then individual numbers 1 and 2, I could create a variable through merging the two that looked like 1107/1 and 1107/2, or something like that.
Thanks in advance!
Comment