Hi there. Can I please ask your help to get my desired data set because I am having diffuilt. I would like to create FamID and FamMemID based on the original dataset with HSurvID, HMemID, Relationship and time. To differentiate between household and family, I would like to create the FamID with FamMemID. TIme is the first,..., nth interview. HSurvID is the household ID. HMemID is the ID for household interviewee. When Relationship is either Friend, Flatmate or Boarder, they will be thought as one new family on its own. Thank you. FamID FamMemID HSurvID HMemID Relationship time 1 1 1 1 Householder 1 1 2 1 2 Father 1 1 3 1 3 Son 1 1 4 1 4 Daughter 1 2 1 2 1 Grandfather 1 2 2 2 2 Son 1 2 3 2 3 Stepspn 1 2 3 2 3 Stepspn 2 20000 1 2 4 Friend 1 30000 1 2 5 Flatmate 1 40000 1 3 1 Flatmate 1 50000 1 3 2 Flatmate 1 50000 1 3 2 Flatmate 2 60000 1 3 3 Boarder 1
... View more