Statalist


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

Re: st: RE: Arranging dataset for KM survival rate


From   Ziad El-Khatib <[email protected]>
To   [email protected]
Subject   Re: st: RE: Arranging dataset for KM survival rate
Date   Wed, 23 Jan 2008 13:25:29 -0800

But what to do if patients have been censored, i.e. they had event==0
at last observation?

Thank you and best regards
ziad


On Jan 23, 2008 1:21 PM, Nick Cox <[email protected]> wrote:
> Without knowing this is biostatistically sensible for your problem,
>
> . keep if event == 1
>
> is one Stata answer for your question.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Ziad
> El-Khatib
> Sent: 23 January 2008 20:59
> To: [email protected]
> Subject: st: Arranging dataset for KM survival rate
>
> Hey again
> I am trying to arrange my dataset to keep one record that has the
> failure event or censor data per patient.
> Any tips about command how to delete the other records prior to
> failure/censor record per patient?
>
> For example
>
> Record nbre       ID            Time        Event
> 1                      1001           1              0
> 2                      1001           2              0
> 3                      1001           3              1
> 4                      1002           1              0
> 5                      1002           2              1
>
>
> How to be able to take away lines 1,2 and 4?
>
>
> *
> *   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/
>



-- 
Ziad El-Khatib
AIDS Unit
National Institute for Communicable Diseases (NICD)
1 Modderfontein Road
Private Bag X4, Sandringham, 2131
Johannesburg, South Africa
Mobile: +27 (0) 72-52 39 716
Phone: +27 (0) 11-386 6433
Fax (NICD): +27 (0)11 386 6453
Fax (alternative): +27 (0)866 18 2871
http://www.nicd.ac.za/

Division of International Health (IHCAR)
Karolinska Institutet
www.phs.ki.se/ihcar

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