Hello everyone.
I want to restrict and keep observation of a households data census that
Only households with mothers and daughters under the age of 55 and over 20 remain
data example:
in relation 1= house head
2=Spouse
3= son or daughter
4= father or mother of house head
in sex 1= male 2=female
person relation sex age house_id
01 1 1 43 222
02 2 2 37 222
03 3 1 13 222
01 1 1 49 102
02 2 2 49 102
03 3 2 25 102
04 3 1 22 102
01 1 1 35 404
02 2 2 33 404
03 3 2 09 404
04 3 1 05 404
05 3 2 01 404
01 1 1 72 342
02 2 2 22 342
03 3 2 01 342
01 1 1 78 345
02 2 2 59 345
03 3 2 28 345
01 1 1 36 402
02 2 2 26 402
03 3 2 05 402
01 1 1 61 441
02 2 2 57 441
03 3 1 17 441
01 1 1 27 522
03 3 1 19 83
01 1 1 35 483
02 2 2 30 483
03 3 1 07 483
04 3 1 04 483
01 1 1 30 523
02 2 2 29 523
01 1 1 57 524
02 2 2 52 524
03 3 1 25 524
Thank you
I want to restrict and keep observation of a households data census that
Only households with mothers and daughters under the age of 55 and over 20 remain
data example:
in relation 1= house head
2=Spouse
3= son or daughter
4= father or mother of house head
in sex 1= male 2=female
person relation sex age house_id
01 1 1 43 222
02 2 2 37 222
03 3 1 13 222
01 1 1 49 102
02 2 2 49 102
03 3 2 25 102
04 3 1 22 102
01 1 1 35 404
02 2 2 33 404
03 3 2 09 404
04 3 1 05 404
05 3 2 01 404
01 1 1 72 342
02 2 2 22 342
03 3 2 01 342
01 1 1 78 345
02 2 2 59 345
03 3 2 28 345
01 1 1 36 402
02 2 2 26 402
03 3 2 05 402
01 1 1 61 441
02 2 2 57 441
03 3 1 17 441
01 1 1 27 522
03 3 1 19 83
01 1 1 35 483
02 2 2 30 483
03 3 1 07 483
04 3 1 04 483
01 1 1 30 523
02 2 2 29 523
01 1 1 57 524
02 2 2 52 524
03 3 1 25 524
Thank you

Comment