Skip to content
Prev 245867 / 398503 Next

Problem using pkg "survival"

On Dec 27, 2010, at 19:48 , James Steinberg wrote:

            
Well, 

1) Welcome to the Internet. Information given here may be incorrect or out of date. Let the buyer beware.

2) Unfortunately, documents (or books) do not automagically update themselves when the software changes. 

The document in question appears to be course material for a course given by Dr. Mai Zhou in 2009, at which time the information may have been accurate. It is not in any sense "the package's guide" since Dr. Zhou is not in charge of the development or maintenance of the survival package.

Anyways, the main point is that the author of the survival package has decided that survfit should no longer be allowed to be a Surv() object only. It needs to be a model formula, and if there are no covariates, use survfit(Surv(....) ~ 1). This is mentioned on the help page for survfit.