Statalist The Stata Listserver


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

Re: st: stcompet and delayed entry


From   Enzo Coviello <[email protected]>
To   [email protected]
Subject   Re: st: stcompet and delayed entry
Date   Mon, 29 Jan 2007 21:59:46 +0100

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/




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