CamDavidsonPilon / lifelines

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

Cox regression bugs? #717

Closed tongtong1993 closed 5 years ago

tongtong1993 commented 5 years ago

survival_log.zip Hi, I have encountered a problem with cox model using this data set. It showed that a error msg : "ValueError: array must not contain infs or NaNs", which was not seemingly the issue after re-checking the dataset. I then used the same data in R's cox package which ran the analysis correctly without any problem. Please help.

CamDavidsonPilon commented 5 years ago

Hello, I noticed you closed this - did you still want assistance? If so, can you tell me what your code looked like, and how you treated the Array column?

tongtong1993 commented 5 years ago

Thank you very much for your response. I finally solve the problem by adding step_size=0.1 when fitting the model.