Survival, Hazard, Regression, Data Science, Hands On Tutorials.
event_observed=survival_status_without_prior_surgery) #plot the two curves kmf_with_prior_surgery.plot() kmf_without_prior_surgery.plot() plt.show() We see this rather interesting result which shows that for any given time t: S(t|with prior open heart surgery) > S(t|without prior open heart