##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: hr$left and hr$Work_accident
## X-squared = 357.56, df = 1, p-value < 2.2e-16
There is an association between leaving and work accidents
Employees without work accidents are 3x more likely to leave (0.265 / .078)
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: hr$left and hr$promotion_last_5years
## X-squared = 56.262, df = 1, p-value = 6.344e-14
There is an association between getting a promotion in the last five years and leaving
Employees that did not have a promotion in the last five years are more likely to leave
##
## Pearson's Chi-squared test
##
## data: hr$left and hr$salary
## X-squared = 381.23, df = 2, p-value < 2.2e-16
There is an association between the given salary of an employee and the likeliness to leave
Employees with a low salary are 1.5x more likely than medium and over 4x more likely than high salaried employeees to leave
##
## Pearson's Chi-squared test
##
## data: hr$left and hr$Department
## X-squared = 86.825, df = 9, p-value = 7.042e-15
There is an association between the department and likeliness to leave
Employees in management and RandD are less likely to leave than other departments (under 15%)