survcomp package - censor missing
1
0
Entering edit mode
t.kuilman ▴ 170
@tkuilman-6868
Last seen 22 months ago
Netherlands

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?

survcomp • 1.6k views
ADD COMMENT
3
Entering edit mode
shepherl 3.8k
@lshep
Last seen 6 hours ago
United States

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 COMMENT
0
Entering edit mode

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 REPLY
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 561 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6