Dear all,
I hope that someone can help me on this small issue.
Setting: I have a population of leukemia patients and I am investigating the prognostic impact of cytogenetic aberrations. In the analysis of relapse, death should be accounted for as a competing risk.
Problem: I made my plot of the cumulative incidens function with death as competing risk using this code:
So, I have two questions. What is it that I have plotted, and how do I get the right plot?
I look forward to your reply.
Best,
Peter
I hope that someone can help me on this small issue.
Setting: I have a population of leukemia patients and I am investigating the prognostic impact of cytogenetic aberrations. In the analysis of relapse, death should be accounted for as a competing risk.
Problem: I made my plot of the cumulative incidens function with death as competing risk using this code:
stset time_to_prim_event, failure(dead_or_relapse==2)This gave the first figure that I have included. What surprised me was how "nice" i looked. When I had a colleague do the same figure in R this confirmed that my figure could not be right.
stcrreg extra8plus_additional, compete(dead_or_relaps==1)
stcurve, cif at1(extra8plus_additional=1) at2(extra8plus_additional=2) at3(extra8plus_additional=3) /*
*/ title("Relapse") /*
*/ yscale(range(0 0.5)) /*
*/ xtitle("Years since diagnosis") /*
*/ ytitle("Probability of relapse")/*
*/ ylabel(0 "0%" 0.1 "10%" 0.2 "20%" 0.3 "30%" 0.4 "40%" 0.5 "50%", nogrid) /*
*/ xscale(range(0 10)) /*
*/ legend(row(3) col(1) /*
*/ order(3 "No trisomy 8 (N=509)" 2 "Trisomy 8 alone(N=18)" 1 "Trisomy 8 + other (N=69)") /*
*/ ring(0) position(5)) /*
*/ graphregion(color(white) margin(small )) /*
*/ plotregion( lstyle(foreground)) /*
*/ bgcolor(white)
So, I have two questions. What is it that I have plotted, and how do I get the right plot?
I look forward to your reply.
Best,
Peter
Comment