Statalist


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

st: Re: R: Censored observation in survival data


From   Nikolaos Pandis <npandis@yahoo.com>
To   Carlo Lazzaro <carlo.lazzaro@tin.it>
Subject   st: Re: R: Censored observation in survival data
Date   Tue, 2 Feb 2010 07:47:40 -0800 (PST)

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 <carlo.lazzaro@tin.it> wrote:

> From: Carlo Lazzaro <carlo.lazzaro@tin.it>
> Subject: R: Censored observation in survival data
> To: statalist@hsphsun2.harvard.edu
> Cc: "'Nikolaos Pandis'" <npandis@yahoo.com>
> 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: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]
> Per conto di Nikolaos Pandis
> Inviato: martedì 2 febbraio 2010 14.46
> A: statalist@hsphsun2.harvard.edu
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index