Hello,
I have a data of households. In most households there are fathers and sons. There data is built such that for every household individuals are numbered within the househould by ID. Each child has FATHER variable that says what is the ID of the father within the same household. In addition every Father has AGE variable. What I want to do is to take the AGE variable of each father and link it to all of its children FATHER_AGE.
FATHER_AGE in the above table is what I am trying to construct based on all the other fields. How could I do this?
Thank you very much!
I have a data of households. In most households there are fathers and sons. There data is built such that for every household individuals are numbered within the househould by ID. Each child has FATHER variable that says what is the ID of the father within the same household. In addition every Father has AGE variable. What I want to do is to take the AGE variable of each father and link it to all of its children FATHER_AGE.
HOUSEHOLD | ID | FATHER | AGE | FATHER_AGE | |||||
1 | 1 | . | |||||||
1 | 2 | . | 50 | ||||||
1 | 3 | 2 | 10 | 50 | |||||
2 | 1 | . | 80 | ||||||
2 | 2 | . | 60 | ||||||
2 | 3 | 1 | 40 | 80 | |||||
2 | 4 | 3 | 5 | 40 | |||||
3 | 1 | 2 | 2 | 30 | |||||
3 | 2 | . | 30 |
FATHER_AGE in the above table is what I am trying to construct based on all the other fields. How could I do this?
Thank you very much!
Comment