Hi,
I'm trying to produce a simple KM graph using the following commands:
And I get the following graph where, as you may see, the legend keys don't allow you to identify the curves. The keys changed in this way when I added the ci option; not using it, everything works fine. The 'no PPI' curve is the upper with the pink line.

I'm using Stata v.13.1. Can anyone please help?
I'm trying to produce a simple KM graph using the following commands:
Code:
sts graph, by(PPI) tmax(9) ci plot1opts(lcolor(pink)) plot2opts(lcolor(navy)) /// yscale(noline) ylabel(.3(.1)1,angle(hor) noticks format(%6.2f)) xlabel(0(1)9, noticks) xtitle("Anni di follow-up", margin(top)) /// legend(order(1 "no PPI" 2 "PPI") cols(1) pos(5) ring(0)) title("Curve di sopravvivenza Kaplan-Meier" "outcome = decesso", margin(bottom)) /// plotregion(lcolor(none)) name(KMdeath, replace)
I'm using Stata v.13.1. Can anyone please help?
Comment