[R] "Dotted lines at the end of the KM-curve"

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Dec 16 23:28:58 CET 2008


Fredrik Lundgren wrote:
> R-ers!
> 
> Referees demand that the line in the KM-curve should be changed to 
> dotted at the point where standarerror is <= 10 %. I don't think it's
> a good habit but I urgently need to implement such a thing in R with 
> survfit, survplot or another program. They also want numbers at risk
> below the curve
> 
> Some help, please....
> 
> 
> Fredrik

Numbers at risk can be done with

library(Design)
f <- cph(Surv( ) ~ ..., surv=TRUE)
survplot(f, n.risk=TRUE, ...)

Frank

> 
> 
> 
> ########################
> 
> Fredrik Lundgren
> fredrik.bg.lundgren at gmail.com
> 
> Engelbrektsgatan 31
> 582 21 Linköping
> tel        013 - 47 30 117
> mob     0706 - 86 39 29
> 
> Sommarhus: Ljungnäs 158
> 380 30 Rockneby
> 0480 - 650 98
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list