Announcement

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

  • Kaplan Meyer Curve

    Hello,
    I am working on a survival analysis paper and one of the reviewers has asked me to add censored values below the curve

    sts graph, by(onlycom) ylab(, nogrid)

    Somehow my data is large and I can not make Datex file. Will appreciate if you can help me with some code to get these censored values below the curve.

    Thanks in advacne




  • #2
    Censored participants are shown as tick marks. Do you mean participants at risk?

    Code:
    sts graph, by(onlycom)  censored(m)  risktable
    or


    Code:
    sts graph, by(onlycom)  censored(s)  risktable
    Last edited by Tiago Pereira; 01 Mar 2022, 17:24.

    Comment


    • #3
      I think Tiago makes a great recommendation. If the reviewer really meant an indication of censored subjects, I might pushback that those tick marks, or crosshairs or number censored is quite distracting to adorn the curve with, especially with large datasets.

      Comment


      • #4
        I agree with the previous posts. I am not a great fan of tickmarks or crosshairs either (with the exception of small data sets like the one used by Tiago).

        The following page presents a discussion on this topic, link to a peer-reviewed paper, and links to Stata code for creating Kaplan-Meier plots with the number of censored times included in the table below the plot.

        https://www.mrcctu.ucl.ac.uk/our-res...uct/kmunicate/

        Comment


        • #5
          Thank you for your help. Yes, when I get the graph with this code, it shows too many points and this is a big distracter. I appreciate your help.

          Comment

          Working...
          X