Skip to Content
Practical Predictive Analytics
book

Practical Predictive Analytics

by Ralph Winters
June 2017
Beginner to intermediate content levelBeginner to intermediate
576 pages
15h 22m
English
Packt Publishing
Content preview from Practical Predictive Analytics

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Superstream: Analytics Engineering

Data Superstream: Analytics Engineering

Alistair Croll, Anna Filippova, Emilie Schario, Lewis Davies, Jacob Frackson, Benn Stancil, Nick Acosta, Elizabeth Caley
R: Predictive Analysis

R: Predictive Analysis

Tony Fischetti, Eric Mayor, Rui Miguel Forte
Python: Advanced Predictive Analytics

Python: Advanced Predictive Analytics

Ashish Kumar, Joseph Babcock

Publisher Resources

ISBN: 9781785886188Supplemental Content