Statalist


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

st: Re: Command to identify number of unique individuals


From   José Maria <[email protected]>
To   <[email protected]>
Subject   st: Re: Command to identify number of unique individuals
Date   Mon, 28 Dec 2009 16:24:27 -0200

<>
may be -distinct-, from SSC, writen by Nick Cox?
José Maria
Jose Maria Pacheco de Souza, Professor Titular (aposentado)
Departamento de Epidemiologia/Faculdade de Saude Publica, USP
Av. Dr. Arnaldo, 715
01246-904  -  S. Paulo/SP - Brasil
fones (11)3061-7747; (11)3768-8612;(11)3714-2403
www.fsp.usp.br/~jmpsouza
----- Original Message ----- From: "Weichle, Thomas" <[email protected]>
To: <[email protected]>
Sent: Monday, December 28, 2009 4:05 PM
Subject: st: Command to identify number of unique individuals


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/



*
*   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