Hi,

I have a data frame with the Time and Survival variables. I am wondering how I can calculate the 95% confidence interval of the Survival probabilities. I found this in Excel ( http://www.real-statistics.com/survival-analysis/kaplan-meier-procedure/confidence-interval-for-the-survival-function/), but I am curious if it can be done with R in an easier way?

My data frame looks like this:

Time Survival

0 1

1 0.99212

2 0.93231

3 0.91655

4 0.96456

…

Thanks,

gib