[R] Kaplan-Meier for left-truncated, right-censored data

Thomas Lumley tlumley at u.washington.edu
Sun Mar 11 23:23:13 CET 2001


On Sun, 11 Mar 2001, Chong Gu wrote:

>
> Is it possible to calculate Kaplan-Meier for left-truncated,
> right-censored data using survival5?

Yes and no.

You can calculate the baseline survival curve for a null Cox model, which
comes to the same thing
Eg, using the test2 dataset from help(coxph)

survfit(coxph(Surv(start,stop,event)~1,data=test2),type="kaplan-meier")

Using type="kaplan-meier" gives a product-type estimator that in
untruncated data would be the Kaplan-Meier. Without this you get exp(-H)
where H is the estimated cumulative hazard (an estimator variously
attributed to Aalen, Breslow, Peto, and probably others).

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list