[R] the Surv function

From: Jennifer Dillon <jdillon_at_hsph.harvard.edu>
Date: Tue, 01 May 2007 23:16:18 -0400


Hi,

I'm trying to do a simple survival analysis on some data, and I'm having the following problem (here's my code and the error message):

out <- Surv(fup,event=status)
Error in Surv(fup, event = status) : argument "time2" is missing, with no default

>From reading the documentation, it seems that I should be able to simply
write: Surv(time1, event) if my data is right-censored, which it is. Help!

Thanks a million,

Jen

-- 
Jennifer Dillon
Doctoral Student
Harvard Biostatistics
Room 414B, Building 1

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Wed 02 May 2007 - 03:22:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 May 2007 - 21:32:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.