Creating HouseHold Numbers

Reply
Contributor
Posts: 28

Creating HouseHold Numbers


Hi,

I have been given this task of creating household numbers. Has anyone ever done a project like this?

Valued Guide
Posts: 854

Re: Creating HouseHold Numbers

nobody

Respected Advisor
Posts: 3,124

Re: Creating HouseHold Numbers

Grand Advisor
Posts: 10,211

Re: Creating HouseHold Numbers

If the idea is to assign a unique identifier it's pretty trivial if you have one record per household in a data set:

data want;

     set have;

     HouseholdId = _n_;

run;

If you have more than one record per household you need to have variables that uniquely identify the household. If you don't have such a combination of variables then the exercise becomes very difficult.

Ask a Question
Discussion stats
  • 3 replies
  • 168 views
  • 0 likes
  • 4 in conversation