Re: [R] the Surv function

From: R. Villegas <villegas.ro_at_gmail.com>
Date: Thu, 03 May 2007 22:21:27 +0200

2007/5/2, Jennifer Dillon <jdillon_at_hsph.harvard.edu>:
> 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.
>

Read this page about Applied Survival Analysis: http://www.ats.ucla.edu/stat/r/examples/asa/default.htm

Rod.



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 Thu 03 May 2007 - 20:49:14 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.