Hi all, can somebody help me out on this problem: I need to generate a unique household id (hhid) from a survey data that list all household members. I have this two variables that clearly distinguish each household: id and intervwid. I had used the collapse command+count which was able to count the number of individuals in the household but cannot figure out how to generate the hhid. Many thanks for any help.
↧