Statalist The Stata Listserver


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

R: st: stcompet and delayed entry


From   <[email protected]>
To   <[email protected]>
Subject   R: st: stcompet and delayed entry
Date   Tue, 30 Jan 2007 16:41:14 +0100

-----Messaggio originale-----
Da: [email protected] per conto di raoul reulen
Inviato: mar 30/01/2007 12.16
A: [email protected]
Oggetto: Re: st: stcompet and delayed entry
 

Thanks for your reply. So am I right that stcompet can handle (left)
truncated data as long as it is defined in stset?


Yes

Enzo





2007/1/29, Enzo Coviello <[email protected]>:
> At 21.17 29/01/2007, you wrote:
> >Hi,
> >
> >I would like to calculate the complement of the Kaplan-Meier and the
> >cumulative incidence in the presence of competing risks. However,
> >several subjects in my cohort data are left truncated (delayed entry)
> >so the number of subjects at risk actually increases first and then
> >decreases.  I first stset my data as:
> >
> >stset age_x, fail(fail) time0(age_e)
>
> Hi Raoul,
>
> you should declare in -stset- wich is the main event:
> stset age_x, fail(fail==1) enter(time age_e)
>
> where fail==1 marks the main event.
>
> Then -stcompet- can be used without special syntax to estimate
> cumulative incidence:
>
> stcompet CumInc = ci, compet1(2)
> where fail==2 corresponds to the competing event.
>
>
> Enzo
>
> *
> *   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/
>
*
*   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/

<<winmail.dat>>




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