I am working on survey data where the variable "a01" stands for Household Identification Number (HID). In this database, fractional value means that the household has separated into two or three households over the course of time. Sample example using dataex :
I have two questions.
i) Can I separate the households which have fractional value? (i.e., I want to keep only 10.1,10.2,16.1,16.2,16.3)
ii) Can I have only the first fractional value of the households which have separated? (i.e., I want to keep only 10.1 and 16.1)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double a01 1 2 3 4 5 6 7 8 9 10.1 10.2 11 12 13 14 15 16.1 16.2 16.3 17 18 19 20 end
I have two questions.
i) Can I separate the households which have fractional value? (i.e., I want to keep only 10.1,10.2,16.1,16.2,16.3)
ii) Can I have only the first fractional value of the households which have separated? (i.e., I want to keep only 10.1 and 16.1)

Comment