The confidence intervals for Kaplan–Meier curves in survival analysis only exist for times after the first (non-censored) event. Example R code:
set.seed(1)
library(survival)
n = 30
x = 10 + sort(10*rexp(n))
u = rep(0, n)
u[15] = 1
l = survfit(Surv(x,u)~1)
plot(l)
While the actual Kaplan–Meier curve is well defined for all time points, the (pointwise) confidence intervals seems to be undefined for all time points earlier than ∼18.
However, it seems reasonable to at least try to calculate confidence intervals even for these early time points. For example, if we’re interested in the time point 10, we observe that out of 30 possible events, non occurred before time 10, so using the rule of three, a simple approximate confidence interval for survival to (at least) time 10 is [1−3/30, 1] = [0.9, 1]. Surely this is better than no confidence interval at all.
For time points between 10 and 18, however, there are several censored observations. Is it still possible to to calculate sensible confidence intervals? Or are these censored observations the reason that software packages don’t show any confidence intervals for time points earlier than the first non-censored event.