Dear all,
I am working on data that has two duplicate ids and others are not duplicates. I would like drop the second observation for each duplicate id but maintain the observation where there ids are not duplicates. Please help me. Here is the sample data
I am working on data that has two duplicate ids and others are not duplicates. I would like drop the second observation for each duplicate id but maintain the observation where there ids are not duplicates. Please help me. Here is the sample data
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int household_id 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 9 9 10 10 11 end
Comment