Re: [R] survfit, unused argument(s) (error ...)

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue 11 Jul 2006 - 00:17:35 EST

On Sat, 8 Jul 2006, Søren Merser wrote:

> Hi
>
> It seems that survfit() doesn't accept the argumnet 'error' as below
>
>> survfit(fit, error='greenwood')
> Error in survfit.coxph(fit, error = "greenwood") :
> unused argument(s) (error ...)
>
> Isn't is allowed to do that for a coxph object?

Looking at the code it seems that you need vartype="greenwood", so the documentation is wrong.

         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 11 00:27:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 11 Jul 2006 - 02:15:45 EST.

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