June 2017
Beginner to intermediate
576 pages
15h 22m
English
A concordance index is another measure that is used in survival analysis to determine how well the model is able to discern between the observed and predicted responses. For our churn example, we would expect the churners to have higher hazard rates than those customers who remain active. If the concordance index is more than .5, that indicates that there is some predictive ability built into the model.
To compute the index we will use the concordance.index() function from the survcomp package to measure the agreement of the pred_validation statistic, with the actual churn outcome.
As in previous examples, one needs to supply the predictions, time variable, and event variable as arguments to the function. We will also ...