natalie.vanzuydam
2011-Jul-25 09:09 UTC
[R] Cox's regression analysis with Left truncated data
Hi, I have a fairly simple question. I would like to use the survival package to perform an analysis on data where an event can have occurred before individuals were recruited into a study. I'm not sure how to do this using the Surv() function. I would have a date of an event and then the enrolment date would be after that. How do I put these two dates into the survival function? Thank you, Natalie ----- Natalie Van Zuydam PhD Student University of Dundee nvanzuydam at dundee.ac.uk -- View this message in context: http://r.789695.n4.nabble.com/Cox-s-regression-analysis-with-Left-truncated-data-tp3692114p3692114.html Sent from the R help mailing list archive at Nabble.com.
Terry Therneau
2011-Jul-26 12:30 UTC
[R] Cox's regression analysis with Left truncated data
Surv(entry-time, last-follow-up-time, status-at-last-follow-up) This works in survfit, coxph, and coxme. Left truncation is currently not implemented for survreg. In your case both times above would be "time since event". Terry T. ------- begin included message ------ I have a fairly simple question. I would like to use the survival package to perform an analysis on data where an event can have occurred before individuals were recruited into a study. I'm not sure how to do this using the Surv() function. I would have a date of an event and then the enrolment date would be after that. How do I put these two dates into the survival function?