[Rd] Wrong behavior of lines.survfit for conf.int="only" (PR#13171)

From: <diggsb_at_ohsu.edu>
Date: Thu, 16 Oct 2008 18:45:13 +0200 (CEST)


Full_Name: Brian Diggs
Version: 2.7.2 (2008-08-25)
OS: mingw32 (Windows XP Professional)
Submission from: (NULL) (137.53.146.55)

Description of problem:
The documentation of lines.survfit states that if it is called with conf.int="only" that the confidence intervals of the survival curve will be drawn but that the survival curve itself will not. Actual behavior is that both the confidence intervals and the survival curve are drawn, the same as if conf.int=TRUE.

Steps to reproduce the problem:
library(survival)
data(cancer)
km <- survfit(Surv(time,status), data=cancer) plot(km, col=0) #lines drawn in background color, needed to set up the axes lines(km,conf.int="only") #should draw only the confidence intervals, does draw both

R version:

platform       i386-pc-mingw32             
arch           i386                        
os             mingw32                     
system         i386, mingw32               
status                                     
major          2                           
minor          7.2                         
year           2008                        
month          08                          
day            25                          
svn rev        46428                       
language       R                           
version.string R version 2.7.2 (2008-08-25)

survival package version:

Version:       2.34-1
Date:          2008-03-31
Packaged:      Wed Apr 2 09:02:54 2008; hornik
Built:         R 2.7.2; i386-pc-mingw32; 2008-08-25 14:57:42; windows

system:
Microsoft Windows XP
Professional
Version 2002
Service Pack 3



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 16 Oct 2008 - 20:19:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 16 Oct 2008 - 22:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive