Survival Analysis, Python, Aft, Cox Ph, Machine Learning.
looks incomplete. ecog_types = data.sort_values(by = ['ph.ecog'])["ph.ecog"].unique() for i, ecog_types in enumerate(ecog_types): ax = plt.subplot(2, 2, i + 1) ix = data['ph.ecog'] == ecog_types kmf.fit(T[ix], E[ix], label = ecog_types) kmf.plot_survival_function(ax = ax, legend = False)