Survival Analysis, Python, Aft, Cox Ph, Machine Learning.
plt.title(ecog_types) plt.xlim(0, 1200) plt.tight_layout() KM plot for ph.ecog categories We can further investigate the ph.ecog == 3 using value_counts( ) method. It shows that the category 3 has only one observation which does not contribute much if we fit a model. data['ph.ecog'].value_counts()