Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Tasha Amin <tamin_wh@hotmail.com> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: Tabulating data with multiple visits--simple question |
Date | Fri, 4 Mar 2011 14:32:58 -0500 |
Sorry for how simple this is. Having too many problems with it so far. I have data with multiple visits by the same person and would like to summarize results by counting their id's only once. How do I tabulate it? Data looks like ID visits clear1 1 01 2 0 1 3 11 4 11 5 12 1 02 2 13 1 0 4 1 04 2 1 When tabulating, I would like the frequency of "clear" to be 3 (corresponding to ID's 1,2, and 4) NOT 5, based on visits. Please help. Thanks! * * 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/