Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Counting unique strings


From   Gary Longton <[email protected]>
To   [email protected]
Subject   Re: st: Counting unique strings
Date   Wed, 25 Feb 2004 14:54:22 -0800

Paul O'Brien wrote:

I have a database of 40,000 clinic visits, with multiple visits by each patient (patient_id). How do I count the number of patients seen?
-distinct- on SSC (-ssc describe distinct-) provides one easy solution.

or see the FAQ: "How do I compute the number of distinct observations" at
   http://www.stata.com/support/faqs/data/distinct.html

- Gary



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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