Message-ID: <20090401092555.A4285594521@borg.st.net.au>
Date: 2009-04-01T09:25:18Z
From: Bob Green
Subject: error message obtained when plotting survival curves (error not previously obtained)
In-Reply-To: <Pine.LNX.4.43.0904010108140.1167@hymn11.u.washington.edu>
Hello Thomas,
I had been using both survival & design packages. I have just tested
both packages and can report that the error only appears after
loading Design. If I just run survival there is no error.
regards
Bob
At 06:08 PM 1/04/2009, Thomas Lumley wrote:
>On Wed, 1 Apr 2009, Bob Green wrote:
>
>>
>>Hello,
>>
>>I now receive an error message when obtaining a survival plot,
>>which was not previously received with the same code. I recently
>>updated all my packages. It does not seem to be a peculiarity of my
>>data as I receive the error using data available in R. A plot is
>>produced but I am uncertain regarding the error message.
>>
>>
>>
>>>library(surv2sample)
>>>data(gastric)
>>>fit <- survfit(Surv(time, event) ~ treatment, data = gastric)
>>Error in get(x, envir = ns, inherits = FALSE) :
>> variable "survfit.km" was not found
>>>#Default plot:
>>>plot(fit)
>
>You don't show what packages you have loaded. My guess would be
>that you are calling Design::survfit rather than survival::survfit,
>and the problem is due to the incompatibility between the most
>recent versions of Design and survival. Frank Harrell and the folks
>at Vanderbilt are working on a new version of Design.
>
> -thomas
>
>Thomas Lumley Assoc. Professor, Biostatistics
>tlumley at u.washington.edu University of Washington, Seattle
>