Search
Question: survcomp package - censor missing
0
2.3 years ago by
t.kuilman140
Netherlands
t.kuilman140 wrote:

It seems that with the newest version of survcomp, the censor is missing (at least by default), as becomes clear from the vignettes. In version survcomp_1.18.0, the figure on page 20 of the vignette looks like this:

However, in version survcomp_1.22.0, the corresponding figure looks like this:

Clearly, the censoring is missing. How can I fix this?

modified 2.3 years ago by shepherl ♦♦ 830 • written 2.3 years ago by t.kuilman140
3
2.3 years ago by
shepherl ♦♦ 830
United States
shepherl ♦♦ 830 wrote:

I believe you can achieve plotting the censor information by adding the argument mark.time=TRUE when calling km.coxph.plot().   see ?plot.survfit from the survival package for more details.

ADD COMMENTlink modified 2.3 years ago • written 2.3 years ago by shepherl ♦♦ 830

Awesome! I checked the help function of survcomp, but it only mentions that you can pass on additional parameters to the plot (and not plot.survfit) function. Thanks for this one :-)