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

Thomas Lumley tlumley at u.washington.edu
Mon Jul 10 16:17:35 CEST 2006


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 at u.washington.edu	University of Washington, Seattle


More information about the R-help mailing list