5. Basic EDA
Missing Value Treatment
Convert variables in to required data types
Build the model in logistic regression
Build CHAID ,CART model using ‘rpart’ and
‘Chaid’ package
Plot decision tree using ‘rpartplot’ function
for cart and chaid model
10. Actual/predicte
d
NO YES
NO 1201 32
YES 137 100
SENSITIVITY =42%
SPECIFICITY =97%
ACCURACY =88%
Significant variable
Overtime
Total working years >=3
Monthly income >= 2475
Job role = Research scientist
Daily rate >= 931
11.
12. Actual/predicte
d
NO YES
NO 1194 39
YES 155 82
SENSITIVITY =34%
SPECIFICITY =96%
ACCURACY =86%
Significant Variable
Overtime
Job level (high level and low level)
Marital Status(Divorced, Single)
Department(HR, Research, Sales)
Distance Travelled from home