Dear STATALISTers,
I am currently facing a problem in competing-risks regression using -stcrreg- and -stcurve-, the latter to produce cumulative incidence curves comparing the cumulative incidence of an event of interest between two cohorts (after accounting for a competing event).
The curves look fine, but I would like to add two things: (1) risk tables beneath the graph, analogous to the -sts graph, atrisk- command for Kaplan-Meier analyses and (2) add censoring marks in the curve, just as is it possible for -sts graph, cen(s)- in Kaplan-Meier graphs.
I have looked for any options but couldn't find a solution.
My codes are as follows:
stset months_to_last_fu, f(event==1)
stcrreg i.pentafecta_dicho, compete(event==2)
stcurve, cif at1(pentafecta_dicho=0) at2(pentafecta_dicho=1)
I attached an example of the Kaplan-Meier curves, which show the censoring marks and risk tables and the cumulative incidence curves, which unfortunately don't show the censoring marks and risk tables.
Your help is greatly appreciated,
kind regards,
Malte

I am currently facing a problem in competing-risks regression using -stcrreg- and -stcurve-, the latter to produce cumulative incidence curves comparing the cumulative incidence of an event of interest between two cohorts (after accounting for a competing event).
The curves look fine, but I would like to add two things: (1) risk tables beneath the graph, analogous to the -sts graph, atrisk- command for Kaplan-Meier analyses and (2) add censoring marks in the curve, just as is it possible for -sts graph, cen(s)- in Kaplan-Meier graphs.
I have looked for any options but couldn't find a solution.
My codes are as follows:
stset months_to_last_fu, f(event==1)
stcrreg i.pentafecta_dicho, compete(event==2)
stcurve, cif at1(pentafecta_dicho=0) at2(pentafecta_dicho=1)
I attached an example of the Kaplan-Meier curves, which show the censoring marks and risk tables and the cumulative incidence curves, which unfortunately don't show the censoring marks and risk tables.
Your help is greatly appreciated,
kind regards,
Malte
Comment