[R] the Surv function

R. Villegas villegas.ro at gmail.com
Thu May 3 22:21:27 CEST 2007


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.



More information about the R-help mailing list