Hi everyone! I am trying to create a parental education variable for my dataset. The variables i have are Household identification number, Individual identification number, Father's id, The level of education of each individual, and relation to the head of househod(Relation to HoH). I want to create a co-resident sample such that for all individuals, whose Relation to HoH has value =1 , their education level should go as parental education for those who has Relation to HoH value =3. Moreover, I have another variable called 'head of households father's edu'. The value in this for corresponding household, should go straight to relation to head of household=1 as their parent's education. Thus, i have a parental edu variable. Can somebody please help me with the stata code for this. Thanks in advance!
-
Login or Register
- Log in with
Comment