CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.32k stars 551 forks source link

Median and quantiles not correct for AalenJohansen #1549

Open evannemartin opened 11 months ago

evannemartin commented 11 months ago

Hello ! I noticed that the parameter median_survivaltime from AalenJohansenFitter doesn't work as it apparently looks for a survival function. Instead I applied directly the function median_survival_times() on the cumulative density but the outputs are 0 despite that the median is not reached and "inf" when the median should be reached... I also have weird results for Q1 as it displays 0 when it should be normally reached. I computed the quantiles with the function qth_survival_times() on cumulative density. Thank you for your help !