Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Counting duplicates and assigning unique values


From   "David Elliott" <[email protected]>
To   [email protected]
Subject   Re: st: Counting duplicates and assigning unique values
Date   Fri, 21 Sep 2007 17:51:11 -0300

Am I interpreting this correctly that you have data that you could
-tab hospid- and get something that looks like:

hospid | freq ...
___________

2000   | ##
2001   | ##
...

where ## is the number of observations/patients for that hospital.

What is not clear is what you mean by "volume group"  - do you mean to
separate hospitals into different strata based on patient volumes?  It
is possible to attach the hospital volume counts to each observation
using -bysort hospid: egen ptcnt=count(1)- . If you then -tab ptcnt-
you can see the range of patient counts.  You could then use -recode-
to divide the counts into different volume groups.

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