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 (0=censored individual;1=unconsored individual)
and the function should return with
t: vector of sorted observed event times, in increasing order; and km: vector of Kaplan-Meier estimates, corresponding to t.
Thanks
Best Regards,
_________________________________________________________________
owitworks_012009
[[alternative HTML version deleted]]