Hi everyone,
I have a survival figure I have plotted that includes a risk table with data at 0, 1, 12, 24, and 36 months. With the default risk table code, the data for 0 and 1 month overwrite one another and I've not been able to figure a way to get it to stop, short of just removing the one month data (which works, but defeats the purpose somewhat). Here's the code I'm using to generate the figure:
sts graph, by(study_grp) failure ylabel(0 0.05 0.10 0.15 0.20 0.25) xlabel(0 1 12 24 36) ///
risktable(0(12)36, order(1 "Group 1" 2 "Group 2") size(vsmall)) ///
xtitle ("Months From First Procedure", size(vsmall)) ///
ytitle ("Cumulative Failure Proportion", size(small)) ///
title ("Unadjusted Cumulative Failure" "by Procedure Type") ///
legend(order (1 2) ///
label(1 "Procedure 1") label(2 "Procedure 2"))
The -risktable- code works OK as is; I added in the -(0(12)36,...)- to get rid of the overlap that was caused by the code in -xlabel-. Any suggestions for how I might do this? Alternatively, is there a way to export the risk table data?
Thanks!
I have a survival figure I have plotted that includes a risk table with data at 0, 1, 12, 24, and 36 months. With the default risk table code, the data for 0 and 1 month overwrite one another and I've not been able to figure a way to get it to stop, short of just removing the one month data (which works, but defeats the purpose somewhat). Here's the code I'm using to generate the figure:
sts graph, by(study_grp) failure ylabel(0 0.05 0.10 0.15 0.20 0.25) xlabel(0 1 12 24 36) ///
risktable(0(12)36, order(1 "Group 1" 2 "Group 2") size(vsmall)) ///
xtitle ("Months From First Procedure", size(vsmall)) ///
ytitle ("Cumulative Failure Proportion", size(small)) ///
title ("Unadjusted Cumulative Failure" "by Procedure Type") ///
legend(order (1 2) ///
label(1 "Procedure 1") label(2 "Procedure 2"))
The -risktable- code works OK as is; I added in the -(0(12)36,...)- to get rid of the overlap that was caused by the code in -xlabel-. Any suggestions for how I might do this? Alternatively, is there a way to export the risk table data?
Thanks!
