O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing for the educational differences between survival curves

Now run the survdiff function for any differences in education:

> survdiff(SurvObj ~ Xeducation, data = ChurnStudy)Call:survdiff(formula = SurvObj ~ Xeducation, data = ChurnStudy)                                N Observed Expected (O-E)^2/E (O-E)^2/VXeducation=Bachelor's Degree 1186      592    594.8   0.01291   0.07392Xeducation=Doctorate Degree    88       45     45.4   0.00301   0.00382Xeducation=Master's Degree    214      114    110.9   0.08896   0.12417 Chisq= 0.1  on 2 degrees of freedom, p= 0.94

Now look at the p value. The p value for the chi-square test is 0.94. That means that we cannot conclude that a significant difference exists for the education survival curves.

This also suggests having a closer look at the following plot. We can see ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required