08-19-2015 03:44 PM
If the idea is to assign a unique identifier it's pretty trivial if you have one record per household in a data set:
HouseholdId = _n_;
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.