Crubal Chenxi Li
Crubal Chenxi Li

Reputation: 313

Python: How can I get lower 95% confidence interval using Kaplan-Meier estimate for survival curve estimate

Looks like we can use Surv and survfit function in R to get 95% lower bound confidence interval by using surv.fit <- survfit(...) and get the 95% CI using summary(surv.fit)

On Python, I tried something like kmf = KaplanMeierFitter() and kmf.fit(T, event_observed=C) Is there a way to get 95% lower bound CI on Python like R did?

Thanks!

Upvotes: 0

Views: 662

Answers (1)

Cam.Davidson.Pilon
Cam.Davidson.Pilon

Reputation: 1726

Try using kmf.confidence_interval_.

Upvotes: 1

Related Questions