David Winsemius
Heritage Laboratories
On Feb 28, 2009, at 5:48 PM, Bob Green wrote:
> I am hoping for some advice regarding how to obtain a log-log
> survival plot that is not in the inverse. On page 128 of Modelling
> survival data by Therneau & Grambsch there is the an example of the
> type of desired plot, with a log of the survival curve by years.
> Marc Schwartz has provided me with some reproducible code.
>
> The code below produces inverted plots.
>
> library(surv2sample)
> data(gastric)
> fit <- survfit ( Surv(time, event) ~ treatment, data = gastric)
> #Default plot:
> plot(fit)
> plot(fit, fun = "cloglog")
>
> library(Design)
> survplot(fit, loglog = TRUE, conf = "none")
>
> Any assistance is much appreciated,
>
> regards
>
> Bob
>
> ______________________________________________
> 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.