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/