Search
Question: survcomp package - censor missing
0
gravatar for t.kuilman
17 months ago by
t.kuilman100
Netherlands
t.kuilman100 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 17 months ago by shepherl ♦♦ 510 • written 17 months ago by t.kuilman100
3
gravatar for shepherl
17 months ago by
shepherl ♦♦ 510
shepherl ♦♦ 510 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 17 months ago • written 17 months ago by shepherl ♦♦ 510

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 17 months ago by t.kuilman100

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 17 months ago by shepherl ♦♦ 510
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: 252 users visited in the last hour