Good morning everyone,
I am new to competing risk analysis and hope somebody can help figure out a little (I hope) problem.
I have a cohort of patients who underwent cardiac surgery; Death is a competing event for Cardiac Reoperation over time; I am estimating the CIF of Reoperation with stcompet in STATA IC 15.1:
I have 3 failure types: 1=reoperation, 2= death without reoperation, 0=Alive and no reoperation
then
now, how can I estimate the last variable: Alive and no reoperation?
when I use the code:
I get only missing values...
I also tried:
but I believe that now I am estimating the Freedom from Reoperation rather than the overall survival because I have stset the data at the beginning using failtype==1...
then can anyone tell me how to graph altogether the cumulative incidence function of Reoperartion, Death without reoperation and the Survival (Alive no reoperation)?
Thank you very much in advance for your help
I am new to competing risk analysis and hope somebody can help figure out a little (I hope) problem.
I have a cohort of patients who underwent cardiac surgery; Death is a competing event for Cardiac Reoperation over time; I am estimating the CIF of Reoperation with stcompet in STATA IC 15.1:
Code:
stset time, failure(failtype==1)
then
Code:
stcompet CumInc= ci, compet1(2)
Code:
gen Reoperation=CumInc if fail==1 gen Death= CumInc if fail==2
when I use the code:
Code:
gen Alive=CumInc if fail==0
I also tried:
Code:
gen Survial=s
then can anyone tell me how to graph altogether the cumulative incidence function of Reoperartion, Death without reoperation and the Survival (Alive no reoperation)?
Thank you very much in advance for your help