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

Comparing customer satisfaction differences

First, extract a sample for the highest and lowest satisfaction scores satisfaction=1 indicates more early churners than satisfaction=5, due to the density of the points:

sat.fit.low <- survfit(CoxModel.1, newdata=subset(ChurnStudy[1:300,],as.integer(Xsatisfaction) == 1))plot(sat.fit.low,col=c('red') ,lty=1,xlab="Months", ylab="Hazard")title(main = "Sat (Lowest) Survival")#sat.fit.high <- survfit(CoxModel.1, newdata=subset(ChurnStudy[1:300,],as.integer(Xsatisfaction) == 5))plot(sat.fit.high,col=c('blue') ,lty=1,xlab="Months", ylab="Hazard")title(main = "sat (Highest) Survival")dev.copy(jpeg,Ch5 - CoxModel1 sat.jpg); dev.off()

Here is the side-by-side comparison of the highest and lowest satisfaction ...

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