Re: [R] need some help about using R for Kaplan-Meier estimator

2009-02-01 Thread Peter Dalgaard
chen chen wrote: Hi Fello: I am asked to compute the Kaplan-Meier estimator of data with right censoring without using surfit(). I.e., a homework problem... For such problem people will at best offer hints. The KM estimator is the ---> cumulative product of ---> decrements that depend

[R] need some help about using R for Kaplan-Meier estimator

2009-02-01 Thread chen chen
Hi Fello: I am asked to compute the Kaplan-Meier estimator of data with right censoring without using surfit(). Does anyone know how to use R to compute the estimators? The data should input X: vector of right-censored observed time for n individuals, and d: vector of failure time indicators (