On Thu, Mar 6, 2014 at 3:35 AM, David Winsemius <dwinsem...@comcast.net>wrote:

> The help page for the survfit function says it expects a formula as its
> first argument so try:
>
> > sleepfit <- survfit(Surv(timeb, death)~1, data = sleep)
>
> David
> Sent from my iPhone ... so unable to test.
>
>
This was a recent (well, 2007) change in behaviour. Previously the function
did some tricks to make either approach work, which could be described as
'clever' or 'too clever by half'.

   -thomas

-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to