top of page

PREDICTING
PROBABILITY OF ATTRITION
MAKING PREDICTION
We have decided upon the fact that the model selected by backward selection iresults in the lowest cross validation error. So we will use this model to predict the probability of attrition associates with each of the employee.
R Code:
fpred<-predict(fullmod,type="response")
pred[1:5]
## 1 2 3 4 5
[1] 0.5294930 0.9769422 0.4833163 0.5502091 0.8651426
This gives us the probability of attrition for each of the employer. For example, the probability of attrition for the first employee is 0.52, for the second employee is 0.97, for the third employee is 0.48 and so on.
bottom of page