hh | q1_a | q1_b | q1_c | q1_d | q11ai | q11aii | q11bi | childn | child_age |
1 | 4 | 12 | |||||||
1 | 4 | 5 | 2 | 2 | 1 | 6 | 0 | 1 | 38 |
1 | 2 | 34 | |||||||
1 | 3 | 28 | |||||||
2 | 4 | 3 | 0 | 2 | . | . | . | 1 | 44 |
2 | 2 | 27 | |||||||
3 | 4 | 6 | 2 | 1 | 1 | 7 | 0 | 1 | 40 |
3 | 2 | 23 | |||||||
3 | 3 | 41 | |||||||
4 | 2 | 3 | 1 | 1 | . | . | . | 1 | 56 |
4 | 2 | 35 | |||||||
4 | 3 | 39 | |||||||
4 | 1 | 20 | |||||||
I have a databse containing both households (hhs)and individual (child) information. Here above I tried to reproduce an example of the datasebase. What I would like to do is to replicate the hhs informaiton for each child belonging to the specific hh. The problem is that hh information are not always entered in the firts row (for instance in the case of hh 1 the information are in the second row). Could you please give me some hints on how to proceed?
Thanks
Federica
Comment