CamDavidsonPilon / lifelines

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

Fix Baseline Hazard Calculation in coxph_fitter #1479

Open bofeng2018 opened 1 year ago

bofeng2018 commented 1 year ago

Bugs were found in the previous coxph_fitter.py file that resulted in incorrect calculation of baseline hazard and cumulative baseline hazard. The current commit has corrected the bugs and should generate the correct baseline hazard and cumulative baseline hazard after passing own tests.