On Thu, Mar 6, 2014 at 3:35 AM, David Winsemius <dwinsemius@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]]


