If you're using PROC LIFETEST then you can use the SURVOUT option on PROC LIFETEST. This will output a dataset with the KM estimates and the confidence intervals. There's similar options if you're using LIFEREG or PHREG procedures.
http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_lifetest_details34.htm
@Gib wrote:
Hi,
I have a data 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 SAS in an easier way?
My data looks like this:
Time Survival 0 1 1 0.99212 2 0.93231 3 0.91655 4 0.96456 …
Thanks, gib
... View more