Search
Question: survcomp package - censor missing
0
gravatar for t.kuilman
22 months ago by
t.kuilman130
Netherlands
t.kuilman130 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?

ADD COMMENTlink modified 22 months ago by shepherl ♦♦ 560 • written 22 months ago by t.kuilman130
3
gravatar for shepherl
22 months ago by
shepherl ♦♦ 560
shepherl ♦♦ 560 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 22 months ago • written 22 months ago by shepherl ♦♦ 560

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 :-)

ADD REPLYlink written 22 months ago by t.kuilman130

The km.coxph.plot()  is plotting a survfit object so the arguments for ?plot.survival should work as additional arguments too (at least in this case). 

ADD REPLYlink written 22 months ago by shepherl ♦♦ 560
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 165 users visited in the last hour