Hi, I am new to Statalist, so let me know if I have missed out on any submission protocols that make it easier for people to understand and respond to my query.
I am trying to use duplicates drop to drop duplicates. I know that the 'duplicates drop' command keeps only the first observation from the group of duplicates. But here, I want to drop the other observations from the group of duplicates and retain the one particular observation that is not the first occurrence in its group. Is that possible with 'duplicates drop'?
I'm using Stata 18.
I am trying to use duplicates drop to drop duplicates. I know that the 'duplicates drop' command keeps only the first observation from the group of duplicates. But here, I want to drop the other observations from the group of duplicates and retain the one particular observation that is not the first occurrence in its group. Is that possible with 'duplicates drop'?
I'm using Stata 18.
Comment