Cox regression python

Edward picture Edward · Mar 15, 2016 · Viewed 7.5k times · Source

Are there any packages in Python for survival analysis? Specifically, I am interested in performing a Cox regression?

I know this example but it's in R. Could we just interface Python with R (using, for example, rpy2)?

Answer

ilse picture ilse · Sep 18, 2017

The lifelines package in Python offers survival analysis, including the Cox proportional hazard fitter: https://lifelines.readthedocs.io/en/latest/