CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.38k stars 560 forks source link

at_risk_counts results as arrays or dataframe instead of under plot? #1624

Open ayadasan opened 4 months ago

ayadasan commented 4 months ago

Hey! I would like the results of the add_at_risk_counts to be saved as an array or something instead of it just being part of my plot. Is there any way of doing that?

Any help would be greatly appreciated!

CamDavidsonPilon commented 4 months ago

Unfortunately there's no current way to do this =\

You'd have to duplicate the logic here into it's own function and pass in the fitter objects

ayadasan commented 4 months ago

Thank you for the quick response! I'll do that then :)