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

From: Thomas Lumley <>
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 Lumley			Assoc. Professor, Biostatistics	University of Washington, Seattle

______________________________________________ mailing list PLEASE do read the posting guide! 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 Please read the posting guide before posting to the list.