So my data set is collected over few rounds and they are stored accordingly. I have created a unique id for households in this data set. Now I need to check and keep only those unique ids which are present in two specific rounds. How should I go about doing it ?
Unique id: sl_mid
gen sl_mid = (sl*100)+mid [ where sl is serial number and mid is member of the household]
I need to check if this id is present in both round 4 and round 2010 and assign x=1 if it is present in both and x=0 if it is absent in even one of the two.
Unique id: sl_mid
gen sl_mid = (sl*100)+mid [ where sl is serial number and mid is member of the household]
I need to check if this id is present in both round 4 and round 2010 and assign x=1 if it is present in both and x=0 if it is absent in even one of the two.