lifelines icon indicating copy to clipboard operation
lifelines copied to clipboard

Getting the results of plot_partial_effects_on_outcome in tabular format

Open Dekermanjian opened this issue 5 years ago • 2 comments

Hello, is there any way to get the results from the function plot_partial_effects_on_outcome in tabular format? This could be useful to see what the probability of survival is for certain risk profiles.

Dekermanjian avatar Nov 24 '20 22:11 Dekermanjian

Okay, I figured out that you can get the values from the plot itself like this: if you name your plot g then: g[0].get_children()[0].get_xydata()

Dekermanjian avatar Nov 24 '20 23:11 Dekermanjian

Hi @Dekermanjian - that's a heavily requested feature, so I think I'll expose this somehow in the next release.

CamDavidsonPilon avatar Nov 25 '20 02:11 CamDavidsonPilon