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

From |
"Carlo Lazzaro" <carlo.lazzaro@tin.it> |

To |
<statalist@hsphsun2.harvard.edu> |

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:npandis@yahoo.com] Inviato: martedì 2 febbraio 2010 16.48 A: Carlo Lazzaro Cc: statalist@hsphsun2.harvard.edu 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 <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/

**References**:**st: Re: R: Censored observation in survival data***From:*Nikolaos Pandis <npandis@yahoo.com>

- Prev by Date:
**RE: st: RE: bug with -noextend- option?** - Next by Date:
**RE: st: RE: bug with -noextend- option?** - Previous by thread:
**st: Re: R: Censored observation in survival data** - Next by thread:
**RE:st: Censored observation in survival data** - Index(es):

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