Skip to content

need some help about using R for Kaplan-Meier estimator

2 messages · chen chen, Peter Dalgaard

#
chen chen wrote:
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 on

---> the number at risk at the event times.


This gives you a list of three things that you need to figure out how to 
calculate.

 > Does anyone know how to use R to
compute the estimators?
individuals, and d: vector of failure time indicators (0=censored
individual;1=unconsored individual)
vector of Kaplan-Meier estimates, corresponding to t.
Thanks