Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Plotting Kaplan Meier overall survival and group survival curves on the same graph.

    Hi all,

    I would like to get some help. I am plotting a Kaplan Meier survival curve for some patients with oesophageal cancer. It is easy for me to plot the overall survival curve using the "Sts graph" command. I can also plot the survival curve for the different stages(0,1,2,3) using the "Sts graph, by(stage)" command. I am trying to put the Kaplan Meier survival curves for the overall survival and the survival by stages on the same graph to enable me compare the survival of each stage of disease to overall survival but I do not know how to do this on Stata. I would be grateful to obtain some assistance with this.
    Thanks

    Ike

  • #2
    A technique often expounded here on Statalist for creating an overall category is to duplicate each observation.

    Code:
    webuse drug2b, clear
    set scheme s1color
    sts graph, by(drug) saving(gr1, replace) leg(order(1 "placebo" 2 "drug")  col(1) pos(1) region(lstyle(none)) ring(0))
    expand 2, gen(new)
    replace drug=3 if new
    sts graph, by(drug) saving(gr2, replace) leg(order(1 "placebo" 2 "drug" 3 "Both" ) col(1) pos(1) region(lstyle(none)) ring(0))
    gr combine gr1.gph gr2.gph
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	25.7 KB
ID:	1721555

    Comment

    Working...
    X