Gwinyai,
I do not fully understand your problem due to the fact that, despite
otherwise adivesed in the FAQ, you do not show what exactly you typed
(in fact, you do not show us any syntax). Anyway, -duplicates drop-
works very fine for me
clear
inp A
1
2
2
2
3
3
4
5
5
6
6
6
end
l
duplicates drop A ,force
l
Could you reformulate your problem, showing us what exactly you typed,
what Stata did in response and why it is not what you would expect?
Best
Daniel
--
Dear Stata list,
I have a dataset with variable A, which has repeated values:
[...]
I have tried the duplicates drop command, but it does not work as the
repeated values are not duplicates, but say different hospital visits by
the same individual.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/