Sponsored Links
-->

Friday, July 6, 2018

Kaplanâ€
src: i.ytimg.com

The Kaplan-Meier estimator, also known as the product limit estimator, is a non-parametric statistic used to estimate the survival function from lifetime data. In medical research, it is often used to measure the fraction of patients living for a certain amount of time after treatment. In other fields, Kaplan-Meier estimators may be used to measure the length of time people remain unemployed after a job loss, the time-to-failure of machine parts, or how long fleshy fruits remain on plants before they are removed by frugivores. The estimator is named after Edward L. Kaplan and Paul Meier, who each submitted similar manuscripts to the Journal of the American Statistical Association. The journal editor, John Tukey, convinced them to combine their work into one paper, which has been cited about 50,000 times since its publication.

The estimator is given by:

S ^ ( t ) = ? i :   t i <= t ( 1 - d i n i ) , {\displaystyle {\widehat {S}}(t)=\prod \limits _{i:\ t_{i}\leq t}\left(1-{\frac {d_{i}}{n_{i}}}\right),}

with t i {\displaystyle t_{i}} a time when at least one event happened, di the number of events (i.e., deaths) that happened at time t i {\displaystyle t_{i}} and n i {\displaystyle n_{i}} the individuals known to survive (have not yet had an event or been censored) at time t i {\displaystyle t_{i}} .


Video Kaplan-Meier estimator



Basic concepts

A plot of the Kaplan-Meier estimator is a series of declining horizontal steps which, with a large enough sample size, approaches the true survival function for that population. The value of the survival function between successive distinct sampled observations ("clicks") is assumed to be constant.

An important advantage of the Kaplan-Meier curve is that the method can take into account some types of censored data, particularly right-censoring, which occurs if a patient withdraws from a study, is lost to follow-up, or is alive without event occurrence at last follow-up. On the plot, small vertical tick-marks indicate individual patients whose survival times have been right-censored. When no truncation or censoring occurs, the Kaplan-Meier curve is the complement of the empirical distribution function.

In medical statistics, a typical application might involve grouping patients into categories, for instance, those with Gene A profile and those with Gene B profile. In the graph, patients with Gene B die much more quickly than those with Gene A. After two years, about 80% of the Gene A patients survive, but less than half of patients with Gene B.

In order to generate a Kaplan-Meier estimator, at least two pieces of data are required for each patient (or each subject): the status at last observation (event occurrence or right-censored) and the time to event (or time to censoring). If the survival functions between two or more groups are to be compared, then a third piece of data is required: the group assignment of each subject.


Maps Kaplan-Meier estimator



Problem Definition

Let ? >= 0 {\displaystyle \tau \geq 0} be a random variable, which we think of as the time until an event of interest takes place. As indicated above, the goal is to estimate the survival function S {\displaystyle S} underlying ? {\displaystyle \tau } . Recall that this function is defined as

S ( t ) = P r o b ( ? > t ) {\displaystyle S(t)=\mathrm {Prob} (\tau >t)} ,

where t = 0 , 1 , ... {\displaystyle t=0,1,\dots } .

Let ? 1 , ... , ? n >= 0 {\displaystyle \tau _{1},\dots ,\tau _{n}\geq 0} be independent, identically distributed random variables, whose common distribution is that of ? {\displaystyle \tau } : ? j {\displaystyle \tau _{j}} is the random time when some event j {\displaystyle j} happened. The data available for estimating S {\displaystyle S} is not ( ? j ) j = 1 , ... , n {\displaystyle (\tau _{j})_{j=1,\dots ,n}} , but the list of pairs ( ( ? ~ j , c j ) ) j = 1 , ... , n {\displaystyle (\,({\tilde {\tau }}_{j},c_{j})\,)_{j=1,\dots ,n}} where for j ? [ n ] := { 1 , 2 , ... , n } {\displaystyle j\in [n]:=\{1,2,\dots ,n\}} , c j >= 0 {\displaystyle c_{j}\geq 0} is a fixed, deterministic integer, the censoring time of event j {\displaystyle j} and ? ~ j = min ( ? j , c j ) {\displaystyle {\tilde {\tau }}_{j}=\min(\tau _{j},c_{j})} . In particular, the information available about the timing of event j {\displaystyle j} is whether the event happened before the fixed time c j {\displaystyle c_{j}} and if so, then the actual time of the event is also available. The challenge is to estimate S ( t ) {\displaystyle S(t)} given this data.


Survival Analysis: Kaplan-Meier (SPSS) - YouTube
src: i.ytimg.com


Derivation of the Kaplan-Meier Estimator

Here, we show two derivations of the Kaplan-Meier estimator. Both are based on rewriting the survival function in terms of what is sometimes called hazard, or mortality rates. However, before doing this it is worthwhile to consider a naive estimator.

A Naive Estimator

To understand the power of the Kaplan-Meier estimator, it is worthwhile to first describe a naive estimator of the survival function.

Fix k ? [ n ] := { 1 , ... , n } {\displaystyle k\in [n]:=\{1,\dots ,n\}} and let t > 0 {\displaystyle t>0} . A basic argument shows that the following proposition holds:

Proposition 1: If the censoring time c k {\displaystyle c_{k}} of event k {\displaystyle k} exceeds t {\displaystyle t} ( c k >= t {\displaystyle c_{k}\geq t} ), then ? ~ k = t {\displaystyle {\tilde {\tau }}_{k}=t} holds true if and only if ? k = t {\displaystyle \tau _{k}=t} holds true, and, similarly, ? ~ k >= t {\displaystyle {\tilde {\tau }}_{k}\geq t} holds true if and only if ? k >= t {\displaystyle \tau _{k}\geq t} .

Let k {\displaystyle k} be such that c k >= t {\displaystyle c_{k}\geq t} . It follows from the above proposition that

P r o b ( ? >= t ) = P r o b ( ? ~ k >= t ) . {\displaystyle \mathrm {Prob} (\tau \geq t)=\mathrm {Prob} ({\tilde {\tau }}_{k}\geq t).}

Let X k = I ( ? ~ k >= t ) {\displaystyle X_{k}=\mathbb {I} ({\tilde {\tau }}_{k}\geq t)} and consider only those k ? C ( t ) := { 1 <= k <= n : c k >= t } {\displaystyle k\in C(t):=\{1\leq k\leq n\,:\,c_{k}\geq t\}} . Let m ( t ) = | C ( t ) | {\displaystyle m(t)=|C(t)|} be the number of elements in C ( t ) {\displaystyle C(t)} . Note that the set C ( t ) {\displaystyle C(t)} is not random and so neither is m ( t ) {\displaystyle m(t)} . Furthermore, ( X k ) k ? C ( t ) {\displaystyle (X_{k})_{k\in C(t)}} is a sequence of independent, identically distributed Bernoulli random variables with common parameter S ( t - 1 ) = P r o b ( ? >= t ) {\displaystyle S(t-1)=\mathrm {Prob} (\tau \geq t)} . Assuming that m ( t ) > 0 {\displaystyle m(t)>0} , this suggests to estimate S ( t - 1 ) {\displaystyle S(t-1)} using

S ^ n a i v e ( t - 1 ) = 1 m ( t ) ? k : c k >= t X k = | { 1 <= k <= n : ? ~ k >= t } | m ( t ) {\displaystyle {\hat {S}}_{\mathrm {naive} }(t-1)={\frac {1}{m(t)}}\sum _{k:c_{k}\geq t}X_{k}={\frac {|\{1\leq k\leq n\,:\,{\tilde {\tau }}_{k}\geq t\}|}{m(t)}}} ,

where the last equality follows because ? ~ k >= t {\displaystyle {\tilde {\tau }}_{k}\geq t} implies c k >= t {\displaystyle c_{k}\geq t} .

The quality of this estimate is governed by the size of m ( t ) {\displaystyle m(t)} . This can be problematic when m ( t ) {\displaystyle m(t)} is small, which happens, by definition, when a lot of the events are censored. A particularly unpleasant property of this estimator, that suggests that perhaps it is not the "best" estimator, is that it ignores all the observations whose censoring time precedes t {\displaystyle t} . Intuitively, these observations still contain information about S ( t ) {\displaystyle S(t)} : For example, when for many events with c k < t {\displaystyle c_{k}<t} , ? ~ k < c k {\displaystyle {\tilde {\tau }}_{k}<c_{k}} also holds, we can infer that events often happen early, which implies that P r o b ( ? <= t ) {\displaystyle \mathrm {Prob} (\tau \leq t)} is large, which, through S ( t ) = 1 - P r o b ( ? <= t ) {\displaystyle S(t)=1-\mathrm {Prob} (\tau \leq t)} means that S ( t ) {\displaystyle S(t)} must be small. However, this information is ignored by this naive estimator. The question is then whether there exists an estimator that makes a better use of all the data. This is what the Kaplan-Meier estimator accomplishes. Note that the naive estimator cannot be improved when censoring does not take place; so whether an improvement is possible critically hinges upon whether censoring is in place.

The Plug-In Approach

By elementary calculations,

S ( t ) = P r o b ( ? > t | ? > t - 1 ) P r o b ( ? > t - 1 ) = ( 1 - P r o b ( ? <= t | ? > t - 1 ) ) P r o b ( ? > t - 1 ) = ( 1 - P r o b ( ? = t | ? >= t ) ) P r o b ( ? > t - 1 ) = q ( t ) S ( t - 1 ) , {\displaystyle {\begin{aligned}S(t)&=\mathrm {Prob} (\tau >t|\tau >t-1)\mathrm {Prob} (\tau >t-1)\\&=(1-\mathrm {Prob} (\tau \leq t|\tau >t-1))\mathrm {Prob} (\tau >t-1)\\&=(1-\mathrm {Prob} (\tau =t|\tau \geq t))\mathrm {Prob} (\tau >t-1)\\&=q(t)S(t-1)\,,\end{aligned}}}

where the one but last equality used that ? {\displaystyle \tau } is integer valued and for the last line we introduced

q ( t ) = 1 - P r o b ( ? = t | ? >= t ) {\displaystyle q(t)=1-\mathrm {Prob} (\tau =t|\tau \geq t)} .

By a recursive expansion of the equality S ( t ) = q ( t ) S ( t - 1 ) {\displaystyle S(t)=q(t)S(t-1)} , we get

S ( t ) = q ( t ) q ( t - 1 ) ? q ( 0 ) . {\displaystyle S(t)=q(t)q(t-1)\cdots q(0).}

Note that here q ( 0 ) = 1 - P r o b ( ? = 0 | ? > - 1 ) = 1 - P r o b ( ? = 0 ) {\displaystyle q(0)=1-\mathrm {Prob} (\tau =0|\tau >-1)=1-\mathrm {Prob} (\tau =0)} .

The Kaplan-Meier estimator can be seen as a "plug-in estimator" where each q ( s ) {\displaystyle q(s)} is estimated based on the data and the estimator of S ( t ) {\displaystyle S(t)} is obtained as a product of these estimates.

It remains to specify how q ( s ) = 1 - P r o b ( ? = s | ? >= s ) {\displaystyle q(s)=1-\mathrm {Prob} (\tau =s|\tau \geq s)} is to be estimated. By Proposition 1, for any k ? [ n ] {\displaystyle k\in [n]} such that c k >= s {\displaystyle c_{k}\geq s} , P r o b ( ? = s ) = P r o b ( ? ~ k = s ) {\displaystyle \mathrm {Prob} (\tau =s)=\mathrm {Prob} ({\tilde {\tau }}_{k}=s)} and P r o b ( ? >= s ) = P r o b ( ? ~ k >= s ) {\displaystyle \mathrm {Prob} (\tau \geq s)=\mathrm {Prob} ({\tilde {\tau }}_{k}\geq s)} both hold. Hence, for any k ? [ n ] {\displaystyle k\in [n]} such that c k >= s {\displaystyle c_{k}\geq s} ,

P r o b ( ? = s | ? >= s ) = P r o b ( ? ~ k = s ) / P r o b ( ? ~ k >= s ) {\displaystyle \mathrm {Prob} (\tau =s|\tau \geq s)=\mathrm {Prob} ({\tilde {\tau }}_{k}=s)/\mathrm {Prob} ({\tilde {\tau }}_{k}\geq s)} . By a similar reasoning that lead to the construction of the naive estimator above, we arrive at the estimator

q ^ ( s ) = 1 - | { 1 <= k <= n : c k >= s , ? ~ k = s } | | { 1 <= k <= n : c k >= s , ? ~ k >= s } | = 1 - | { 1 <= k <= n : ? ~ k = s } | | { 1 <= k <= n : ? ~ k >= s } | {\displaystyle {\hat {q}}(s)=1-{\frac {|\{1\leq k\leq n\,:\,c_{k}\geq s,{\tilde {\tau }}_{k}=s\}|}{|\{1\leq k\leq n\,:\,c_{k}\geq s,{\tilde {\tau }}_{k}\geq s\}|}}=1-{\frac {|\{1\leq k\leq n\,:\,{\tilde {\tau }}_{k}=s\}|}{|\{1\leq k\leq n\,:\,{\tilde {\tau }}_{k}\geq s\}|}}}

(think of estimating the numerator and denominator separately in the definition of the "hazard rate" P r o b ( ? = s | ? >= s ) {\displaystyle \mathrm {Prob} (\tau =s|\tau \geq s)} ). The Kaplan-Meier estimator is then given by

S ^ ( t ) = ? s = 0 t q ^ ( s ) {\displaystyle {\hat {S}}(t)=\prod _{s=0}^{t}{\hat {q}}(s)} .

The form of the estimator stated at the beginning of the article can be obtained by some further algebra. For this, write q ^ ( s ) = 1 - d ( s ) / n ( s ) {\displaystyle {\hat {q}}(s)=1-d(s)/n(s)} where, using the actuarial science terminology, d ( s ) = | { 1 <= k <= n : ? ~ k = s } | {\displaystyle d(s)=|\{1\leq k\leq n\,:\,{\tilde {\tau }}_{k}=s\}|} is the number of known deaths at time s {\displaystyle s} , while n ( s ) = | { 1 <= k <= n : ? ~ k >= s } | {\displaystyle n(s)=|\{1\leq k\leq n\,:\,{\tilde {\tau }}_{k}\geq s\}|} is the number of those persons who are alive at time s {\displaystyle s} .

Note that if d ( s ) = 0 {\displaystyle d(s)=0} , q ^ ( s ) = 1 {\displaystyle {\hat {q}}(s)=1} . This implies that we can leave out from the product defining S ^ ( t ) {\displaystyle {\hat {S}}(t)} all those terms where d ( s ) = 0 {\displaystyle d(s)=0} . Then, letting 0 <= t 1 < t 2 < ? < t m {\displaystyle 0\leq t_{1}<t_{2}<\dots <t_{m}} be the times s {\displaystyle s} when d ( s ) > 0 {\displaystyle d(s)>0} , d i = d ( t i ) {\displaystyle d_{i}=d(t_{i})} and n i = n ( t i ) {\displaystyle n_{i}=n(t_{i})} , we arrive at the form of the Kaplan-Meier estimator given at the beginning of the article:

S ^ ( t ) = ? i : t i <= t ( 1 - d i n i ) {\displaystyle {\hat {S}}(t)=\prod _{i:t_{i}\leq t}\left(1-{\frac {d_{i}}{n_{i}}}\right)} .

As opposed to the naive estimator, this estimator can be seen to use the available information more effectively: In the special case mentioned beforehand, when there are many early events recorded, the estimator will multiply many terms with a value below one and will thus take into account that the survival probability cannot be large.

Derivation as a maximum likelihood estimator

Kaplan-Meier estimator can be derived from maximum likelihood estimation of hazard function. More specifically given d i {\displaystyle d_{i}} as the number of events and n i {\displaystyle n_{i}} the total individuals at risk at time  t i {\displaystyle t_{i}} , discrete hazard rate h i {\displaystyle h_{i}} can be defined as the probability of an individual with an event at time  t i {\displaystyle t_{i}} . Then survival rate can be defined as:

S ( t ) = ? i :   t i <= t ( 1 - h i ) {\displaystyle S(t)=\prod \limits _{i:\ t_{i}\leq t}(1-h_{i})}

and the likelihood function for the hazard function up to time t i {\displaystyle t_{i}} is:

L ( h j : j <= i | d j : j <= i , n j : j <= i ) = ? j = 1 i h j d j ( 1 - h j ) n j - d j {\displaystyle {\mathcal {L}}(h_{j:j\leq i}|d_{j:j\leq i},n_{j:j\leq i})=\prod _{j=1}^{i}h_{j}^{d_{j}}(1-h_{j})^{n_{j}-d_{j}}}

therefore the log likelihood will be:

log ( L ) = ? j = 1 i ( d j log ( h j ) + ( n j - d j ) log ( 1 - h j ) ) {\displaystyle \log({\mathcal {L}})=\sum _{j=1}^{i}\left(d_{j}\log(h_{j})+(n_{j}-d_{j})\log(1-h_{j})\right)}

finding the maximum of log likelihood with respect to h i {\displaystyle h_{i}} yields:

? log ( L ) ? h i = d i h ^ i - n i - d i 1 - h ^ i = 0 => h ^ i = d i n i {\displaystyle {\frac {\partial \log({\mathcal {L}})}{\partial h_{i}}}={\frac {d_{i}}{{\widehat {h}}_{i}}}-{\frac {n_{i}-d_{i}}{1-{\widehat {h}}_{i}}}=0\Rightarrow {\widehat {h}}_{i}={\frac {d_{i}}{n_{i}}}}

where hat is used to denote maximum likelihood estimation. Given this result, we can write:

S ^ ( t ) = ? i :   t i <= t ( 1 - h ^ i ) = ? i :   t i <= t ( 1 - d i n i ) {\displaystyle {\widehat {S}}(t)=\prod \limits _{i:\ t_{i}\leq t}\left(1-{\widehat {h}}_{i}\right)=\prod \limits _{i:\ t_{i}\leq t}\left(1-{\frac {d_{i}}{n_{i}}}\right)}


The mortality of companies | Journal of The Royal Society Interface
src: rsif.royalsocietypublishing.org


Benefits and limitations

The Kaplan-Meier estimator is one of the most frequently used methods of survival analysis. The estimate may be useful to examine recovery rates, the probability of death, and the effectiveness of treatment. It is limited in its ability to estimate survival adjusted for covariates; parametric survival models and the Cox proportional hazards model may be useful to estimate covariate-adjusted survival.


Stata Kaplan-Meier Estimator - YouTube
src: i.ytimg.com


Statistical considerations

The Kaplan-Meier estimator is a statistic, and several estimators are used to approximate its variance. One of the most common estimators is Greenwood's formula:

Var ^ ( S ^ ( t ) ) = S ^ ( t ) 2 ? i :   t i <= t d i n i ( n i - d i ) , {\displaystyle {\widehat {\operatorname {Var} }}({\widehat {S}}(t))={\widehat {S}}(t)^{2}\sum \limits _{i:\ t_{i}\leq t}{\frac {d_{i}}{n_{i}(n_{i}-d_{i})}},}

where d i {\displaystyle d_{i}} is the number of cases and n i {\displaystyle n_{i}} is the total number of observations, for t i < t {\displaystyle t_{i}<t} .

In some cases, one may wish to compare different Kaplan-Meier curves. This can be done by the log rank test, and the Cox proportional hazards test.

Other statistics that may be of use with this estimator are the Hall-Wellner band and the equal-precision band.


Table 2. Mean 72 h LC50 values (mS/cm) estimated from Kaplan-Meier ...
src: www.researchgate.net


Software

  • Mathematica: the built-in function SurvivalModelFit creates survival models.
  • SAS: The Kaplan-Meier estimator is implemented in the proc lifetest procedure.
  • R: the Kaplan-Meier estimator is available as part of the survival package.
  • Stata: the command sts returns the Kaplan-Meier estimator.
  • Python: the lifelines package includes the Kaplan-Meier estimator.
  • MATLAB: the ecdf function with the 'function','survivor' arguments can calculate or plot the Kaplan-Meier estimator.
  • StatsDirect: The Kaplan-Meier estimator is implemented in the Survival Analysis menu.

Retrospective analysis of 264 multiple myeloma patients
src: www.spandidos-publications.com


See also

  • Frequency of exceedance
  • Median lethal dose
  • Nelson-Aalen estimator

Figure 2: Kaplan-Meier estimated long-term prognosis of NPBC ...
src: www.researchgate.net


References


Coronary Artery Bypass Graft Surgery Using the Radial Artery as a ...
src: jaha.ahajournals.org


Further reading

  • Aalen, Odd; Borgan, Ornulf; Gjessing, Hakon (2008). Survival and Event History Analysis: A Process Point of View. Springer. pp. 90-104. ISBN 978-0-387-68560-1. 
  • Greene, William H. (2012). "Nonparametric and Semiparametric Approaches". Econometric Analysis (Seventh ed.). Prentice-Hall. pp. 909-912. ISBN 978-0-273-75356-8. 
  • Jones, Andrew M.; Rice, Nigel; D'Uva, Teresa Bago; Balia, Silvia (2013). "Duration Data". Applied Health Economics. London: Routledge. pp. 139-181. ISBN 978-0-415-67682-3. 
  • Singer, Judith B.; Willett, John B. (2003). Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence. New York: Oxford University Press. pp. 483-487. ISBN 0-19-515296-4. 

Table 2. Mean 72 h LC50 values (mS/cm) estimated from Kaplan-Meier ...
src: www.researchgate.net


External links

  • Dunn, Steve (2002). "Survival Curves: Accrual and The Kaplan-Meier Estimate". Cancer Guide. Statistics. 
  • Staub, Linda; Gekenidis, Alexandros (Mar 7, 2011). "Kaplan-Meier Survival Curves and the Log-Rank Test" (PDF). Survival Analysis (pdf). Handout and presentation. Seminar for Statistics (SfS). Eidgenössische Technische Hochschule Zürich (ETH) [Swiss Federal Institute of Technology Zurich]. 
  • Three evolving Kaplan-Meier curves on YouTube

Source of article : Wikipedia