Statalist The Stata Listserver


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

st: counting events


From   Ana Gabriela Guerrero Serdan <[email protected]>
To   [email protected]
Subject   st: counting events
Date   Wed, 7 Feb 2007 14:43:31 -0800 (PST)

HI, 

I am struggling on the following. I need to count the
events or number of incidents where people died. I
have information at the individual level such as: 

 +----------------------------+
       | count   incident       sex |
       |----------------------------|
    1. |     1       x007   unknown |
    2. |     2       x038      male |
    3. |     3       x038      male |
    4. |     4       x038      male |
    5. |     5       k000    female |
       |----------------------------|
    6. |     6       k000   unknown |
    7. |     7       x038   unknown |
    8. |     8       x038   unknown |
    9. |     9       x035   unknown |
   10. |    10       x040   unknown |

I am trying to generate a new variable call "event"
that will put a number to each same incident 

like: incident x007 event 1



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