First, the expected survival time when time is time to event is treated as a continuous r.v. is given as the following:
$$\int_0^{\infty} S(t)\, dt$$
The formula for the mean residual survival time $\text{mrl}(u) = E(T -u | T>u)$ is given by
$$\frac{1}{S(u)}\int_u^{\infty} S(t)\, dt.$$
Can anyone explain the logic of dividing by $S(u)$?
For discrete time, this step does not appear needed (cf related question). Why?
Thanks!
ADD after Henry's explanation:
Lets say I have discrete time (12 months with the following hazards and Survival).
month<-seq(0,12)
h_x<-c(0,0.115706673,0.110186514,0.115769107,0.108296623,0.08908868,0.082548228,0.060146699,0.048112058,0.042197452,0.036919831,0.024691358,0.012787724)
S_x<-c(1,0.8843,0.7869,0.6958,0.6204,0.5651,0.5185,0.4873,0.4639,0.4443,0.4279,0.4173,0.4120)
plot(month,S_x,type="b")
1) Is the mean (truncated) lifetime sum(S_x[2:12]) #6.3117
?
2) Lets say that we are know that a person survives up to 5th month (start of 5) i.e. they get through 4 complete months and we now want to estimated their mean (truncated) residual life. So, $\gamma$ =7 Is this computed as sum(S_x[5:12])/S_x[5] #6.358317
since 6.358 < $\gamma$+1 ?