Statalist


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

st: R: Censored observation in survival data


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

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