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

Computing baseline estimates

We will first determine the baseline (or average) estimates for the regression model we have just run, using the basehaz() function. We will assign it to an object named base, and then we will print and plot it.

#Let's start by looking at the baseline estimates for each time period.#base <- basehaz(CoxModel.1)print(base)> print(base)        hazard time1  0.007174321    12  0.033151848    23  0.051088747    34  0.062057960    45  0.084305023    56  0.109773610    67  0.149493300    78  0.200891166    89  0.281904190    910 0.420681696   1011 0.623702585   1112 1.281690658   12

Recall that the hazard is the likelihood that an event (churn) will happen, given that it hasn't already happened. This terminology is slightly different from the term survival rate, ...

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