Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: R: R: Censored observation in survival data


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: R: R: Censored observation in survival data
Date   Tue, 2 Feb 2010 17:32:32 +0100

Dear Nick,
I did not mean to enter the censored observations as missing (.)

For sake of clarity, I should have typed: 
--------------------------------
replace  Failure=0 in 9/10
-------------------------------
instead of my previous 
...............................
replace  Failure=0 if Failure==.
...............................

Kind Regards,
Carlo
-----Messaggio originale-----
Da: Nikolaos Pandis [mailto:[email protected]] 
Inviato: martedì 2 febbraio 2010 16.48
A: Carlo Lazzaro
Cc: [email protected]
Oggetto: Re: R: Censored observation in survival data

Dear Carlo,

Thank you for the posting.

Somehow I do not receive a posting from Maarten. Perhaps, it will show up
later.

Anyways, is it correct to assume that you enter the censored observations as
missing (.)?

Many thanks,

Nick

--- On Tue, 2/2/10, Carlo Lazzaro <[email protected]> wrote:

> From: Carlo Lazzaro <[email protected]>
> Subject: R: Censored observation in survival data
> To: [email protected]
> Cc: "'Nikolaos Pandis'" <[email protected]>
> Date: Tuesday, February 2, 2010, 5:30 PM
> Dear Nick,
> just as an aside to Maarten's reply, something like the
> never-in-reality
> following example might help (flag: Stata 9.2/SE):
> ---------------------begin example---------------
> set obs 10
> g id=_n
> g In=0
> g Out=1
> g Failure=1 in 1/8
> replace  Failure=0 if Failure==.
> g Risk_Time= Out-In
> stset Risk_Time, failure(Failure==1)
> sts graph, lost enter
> --------------------ens example--------------------
> 
> Kind Regards,
> Carlo
> -----Messaggio originale-----
> Da: [email protected]
> [mailto:[email protected]]
> Per conto di Nikolaos Pandis
> Inviato: martedì 2 febbraio 2010 14.46
> A: [email protected]
> Oggetto: st: Censored observation in survival data
> 
> Hi to all.
> 
> I would like to ask:
> 
> When you enter survival data (before stset) how do you
> declare an
> observation as being censored? How do we let the software
> know to make the
> distinction between the failures and the censored
> observations during the
> predefined follow-up time? 
> 
> Many thanks,
> 
> Nick
> 
> 
>       
> *
> *   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/
> 
> 
> 


      



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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index