Python 中的生存分析
Shae Wang
Senior Data Scientist
若协变量仅有少数取值,查看各组的 Kaplan–Meier 曲线。

若协变量仅有少数取值,查看各组的 Kaplan–Meier 曲线。

若协变量仅有少数取值,查看各组的 Kaplan–Meier 曲线。

若协变量为连续型,使用 .check_assumptions() 方法。
training_df:用于拟合模型的原始 DataFrame。p_value_threshold:用于提示违背的阈值(默认 0.01,建议 0.05)。model.check_assumptions(training_df, p_value_threshold=0.05)
1. 变量 'A' 未通过非比例性检验:p 值为 0.0007。
建议 1:...
建议 2:...
2. 变量 'B' 未通过非比例性检验:p 值为 0.0063。
建议 1:...
建议 2:...
Python 中的生存分析