lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

Confidence Intervals for Allen's Predict function

Open gmckinnon opened this issue 8 years ago • 4 comments

Any chance someone has coded something up to return the confidence intervals along with the predicted survival curve from a additive model?

Ideally you could run the predict_survival_function with a option to include the confidence interval from confidence_intervals_

If not I'll code it up and submit it if it would be worth including

cheers,

gmckinnon avatar Jul 22 '17 06:07 gmckinnon

I would love this PR. I have had it in the back of my mind, but not really had the opportunity to dig into the literature and figure it out.

Even if you could do that part, and skip the implementation, that would be appreciated.

CamDavidsonPilon avatar Jul 22 '17 14:07 CamDavidsonPilon

Hi Cam, Am I wrong in assuming I could use your existing code for generating individual cumulative hazards but substitute the confidence interval values from the aaf.confidence_intervals function and then take the exponential of the negative value for both upper and lower bounds?

I have done this and while the upper confidence bound seems quite high overall it seems to work.

gmckinnon avatar Jul 23 '17 06:07 gmckinnon

maybe - that sounds sensible, but I'm not 100% sure that's accurate

CamDavidsonPilon avatar Jul 24 '17 01:07 CamDavidsonPilon

Anyone figure this out?

hamiltonoh avatar Sep 27 '22 21:09 hamiltonoh