Statalist


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

st: Counting duplicates and assigning unique values


From   [email protected]
To   [email protected]
Subject   st: Counting duplicates and assigning unique values
Date   Fri, 21 Sep 2007 12:59:18 -0600 (MDT)

I would like to count and plot the number of patients addmitted to each
hospital, sorted by volume group.  Patients (variable name key, n=31818
observations) are assigned a numbered ID ranging from 20000-40000. 
Hospitals (variable name hospid, n=2000) are also assigned a numbered ID
ranging from 2000-5000.  Each hospid likely has many key observations
associated with it.  But when I plot it the program plots it based on the
numbered ID, instead of a unique values ie. 1-2000.  Any thoughts on what
commands to use and how to plot this?

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