Skip to Content
Practical Predictive Analytics
book

Practical Predictive Analytics

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

Comparing the models

Even though the survival curves are similar, we can see that at the end of 12 months, 56% of the customers were retained, as opposed to the original 27%. We could attribute that to the intervention that took place at month 6.

Use the summary(survfit) function to compare the modes:

> summary(survfit(CoxModel.2))

Call: survfit(formula = CoxModel.2)

v

time n.risk n.event survival std.err lower 95% CI upper 95% CI

1 1488 15 0.994 0.00157 0.991 0.997

2 1455 52 0.973 0.00359 0.966 0.980

3 1393 34 0.958 0.00461 0.949 0.967

4 1342 20 0.950 0.00518 0.940 0.960

5 1315 39 0.932 0.00624 0.920 0.945

6 1245 42 0.913 0.00736 0.898 0.927

7 1156 24 0.898 0.00801 0.883 0.914

8 1020 32 0.877 0.00902 0.859 0.895

9 850 40 0.846 0.01052 ...

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