Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72762

Extracting individual ID from household ID

$
0
0
I have a dataset that has household ID and individual ID. But the problem is individual ID is unique upto a household, which means if hhid is 1, under that ID, if there are four family members, individual ID is 1 to for and if hhid is 2 with three individuals, individual ID goes from 1 to 3 within that hhid, and so on.
I want to create a individual ID that encompasses the whole dataset so that each observation has a unique individual ID, but I have no idea how to. Can someone help me out? Thanks



Viewing all articles
Browse latest Browse all 72762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>