Closed gustavoalcantara closed 6 months ago
Hi @gustavoalcantara, double check the data your putting into kmf.fit
, and make sure that it matches what survival
is getting. The data looks different in the two graphs - most noticeably that survival
graph has a group with no deaths (blue line) whereas lifelines doesn't have anything near that.
Hi @CamDavidsonPilon. Thanks for the answer. So I think the problem is my input... To determine the censored/dead event, I used 1 for alive and 0 for death... Thanks for the help. I'll fix that and send it to you again... thanks!
@CamDavidsonPilon the problems was me and my input. lol Im gonna close this issue, ok? Many Thanks!
Hello Guys. Hope you well.
I'm conducting a survival analysis using two different libraries. One of them is RStudio's
survival
, and the other is Python'slifelines
.The issue is that when I perform the calculation in Python, my survival curves tend towards 0. In R, they appear normal. Here's the difference between the two graphs:
survival
lifelines
My Python code looks like this:
Could you please help me? I'd like to use the Python package because of the integrations it provides with some of the infrastructure I use.
Thank you very much!