Hi Statalisters,
Is there a command that will list the number of unique individuals in my
dataset? I'm familiar with the duplicates and dups commands, but these
aren't showing me the number of unique individuals.
It should be equivalent to the following SAS command which will identify
the number of unique observations by study_id:
PROC SORT NODUPKEY DATA=test;
BY study_id;
RUN;
Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
[email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/