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-...), 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
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.
@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-...), 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
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.