Survival, Hazard, Regression, Data Science, Hands On Tutorials.
fitterB=kmf_without_prior_surgery) #Print the test statistic and it's p-value for 1 degree of freedom on the Chi-square table print('Chi-squared(1) Test statistic='+str(results.test_statistic) + ' p-value='+str(results.p_value)) We get the following result: Chi-squared(1) Test