Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Command to identify number of unique individuals


From   "Weichle, Thomas" <[email protected]>
To   <[email protected]>
Subject   st: Command to identify number of unique individuals
Date   Mon, 28 Dec 2009 12:05:41 -0600

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index