Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log-rank test survival time and relapse or no-relapse #6

Open
plbenveniste opened this issue Sep 13, 2024 · 1 comment
Open

Log-rank test survival time and relapse or no-relapse #6

plbenveniste opened this issue Sep 13, 2024 · 1 comment

Comments

@plbenveniste
Copy link
Owner

In the file data_preprocessing/6_survival_primitive_vs_metastasis.py we perform the following log-rank test.

  • Null Hypothesis (H₀): There is no difference in survival distributions between the groups (e.g., subjects with relapse vs. without relapse).
  • Alternative Hypothesis (H₁): There is a significant difference in survival distributions between the groups.

Two experiements were done :

  1. First experiment: if the survival time is NaN then we set it equal to +∞ as we consider that the persone dies after the study
  2. Second experiment: if the survival time is NaN then we remove the person from the study

The results of the experiments are very different. Here is the output of the code:

First Strategy: if 'delai_fin_DC' is nan then death occurs at time = + infinite
Log-Rank Test Statistic: 8.211735435498051
Log-Rank Test p-value: 0.004162032598667009

Second Strategy: remove the patients for which 'delai_fin_DC' is nan
Log-Rank Test Statistic: 1.2871655808759024
Log-Rank Test p-value: 0.2565709557686867
@plbenveniste
Copy link
Owner Author

To Do:

  • Plot the Kaplan Meyer survival plot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant