Hi,
I'm struggling to find a way to transfer observations on an individual level to rows equal to family levels. You can find a picture of the data attached. Most lables are straightforward, famnr is the individual family number based on city and family, fampos is the position of the individual within the family (1=child, 2=spouse, 3=household head).
The final arrangement should include information on the age of the individual person (mother, father or child) so that each family can be displayed in one row. And related to children, there should be variables sex_first child, age_first child, sex_second child, age_second child and so on.
Does anybody have an idea how to start?
Thanks in advance!
Cheers,
NM
I'm struggling to find a way to transfer observations on an individual level to rows equal to family levels. You can find a picture of the data attached. Most lables are straightforward, famnr is the individual family number based on city and family, fampos is the position of the individual within the family (1=child, 2=spouse, 3=household head).
The final arrangement should include information on the age of the individual person (mother, father or child) so that each family can be displayed in one row. And related to children, there should be variables sex_first child, age_first child, sex_second child, age_second child and so on.
Does anybody have an idea how to start?
Thanks in advance!
Cheers,
NM
Comment