Skip to content

Discrepancy in Survival Analysis Results Between Python and SAS #1652

@dominicyu04

Description

@dominicyu04

I am currently learning survival analysis using Python, following a textbook example on the leukemia remission dataset. However, my results differ from those presented in the textbook. When I repeated the analysis using SAS, the results matched the textbook exactly. Could anyone help me understand the possible reasons for the discrepancy between the Python and SAS results?

I ran two models. The event of interest, or censorship, is named "Event," and the time to event variable is named "Survival_time." In the first model, I only assessed the impact of an explanatory variable, which is named "Group." In the second model, I further adjusted for "Log_WBC."

Remission.xlsx- This is the data

Image Image My python code of two models and result Image Image Image My sas code and results.

Thank you in advance for clarifying this discrepancy for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions