##
##
## Cell Contents
## |-------------------------|
## | N |
## | Chi-square contribution |
## | N / Row Total |
## | N / Col Total |
## | N / Table Total |
## |-------------------------|
##
##
## Total Observations in Table: 14999
##
##
## | hr$Work_accident
## hr$left | 0 | 1 | Row Total |
## -------------|-----------|-----------|-----------|
## 0 | 9428 | 2000 | 11428 |
## | 12.346 | 73.029 | |
## | 0.825 | 0.175 | 0.762 |
## | 0.735 | 0.922 | |
## | 0.629 | 0.133 | |
## -------------|-----------|-----------|-----------|
## 1 | 3402 | 169 | 3571 |
## | 39.510 | 233.709 | |
## | 0.953 | 0.047 | 0.238 |
## | 0.265 | 0.078 | |
## | 0.227 | 0.011 | |
## -------------|-----------|-----------|-----------|
## Column Total | 12830 | 2169 | 14999 |
## | 0.855 | 0.145 | |
## -------------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 358.5938 d.f. = 1 p = 5.698673e-80
##
## Pearson's Chi-squared test with Yates' continuity correction
## ------------------------------------------------------------
## Chi^2 = 357.5624 d.f. = 1 p = 9.55824e-80
##
##
There is an association between leaving and work accidents, where employees without accidents are more likely to leave
Employees with out work accidents are more than 3x more likely to leave (0.265 / 0.078)
##
##
## Cell Contents
## |-------------------------|
## | N |
## | Chi-square contribution |
## | N / Row Total |
## | N / Col Total |
## | N / Table Total |
## |-------------------------|
##
##
## Total Observations in Table: 14999
##
##
## | hr$promotion_last_5years
## hr$left | 0 | 1 | Row Total |
## -------------|-----------|-----------|-----------|
## 0 | 11128 | 300 | 11428 |
## | 0.290 | 13.343 | |
## | 0.974 | 0.026 | 0.762 |
## | 0.758 | 0.940 | |
## | 0.742 | 0.020 | |
## -------------|-----------|-----------|-----------|
## 1 | 3552 | 19 | 3571 |
## | 0.928 | 42.702 | |
## | 0.995 | 0.005 | 0.238 |
## | 0.242 | 0.060 | |
## | 0.237 | 0.001 | |
## -------------|-----------|-----------|-----------|
## Column Total | 14680 | 319 | 14999 |
## | 0.979 | 0.021 | |
## -------------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 57.26273 d.f. = 1 p = 3.813123e-14
##
## Pearson's Chi-squared test with Yates' continuity correction
## ------------------------------------------------------------
## Chi^2 = 56.26163 d.f. = 1 p = 6.344155e-14
##
##
There is an association between leaving an receiving a promotion where employees without promotions in the last 5 years are more likely to leave
Employees without a promotion in the last 5 years are more than 4 times more likely to leave (0.242 / 0.060)
##
##
## Cell Contents
## |-------------------------|
## | N |
## | Chi-square contribution |
## | N / Row Total |
## | N / Col Total |
## | N / Table Total |
## |-------------------------|
##
##
## Total Observations in Table: 14999
##
##
## | hr$Department
## hr$left | accounting | hr | IT | management | marketing | product_mng | RandD | sales | support | technical | Row Total |
## -------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|
## 0 | 563 | 524 | 954 | 539 | 655 | 704 | 666 | 3126 | 1674 | 2023 | 11428 |
## | 0.783 | 2.709 | 0.391 | 7.250 | 0.002 | 0.408 | 7.346 | 0.255 | 0.348 | 1.178 | |
## | 0.049 | 0.046 | 0.083 | 0.047 | 0.057 | 0.062 | 0.058 | 0.274 | 0.146 | 0.177 | 0.762 |
## | 0.734 | 0.709 | 0.778 | 0.856 | 0.763 | 0.780 | 0.846 | 0.755 | 0.751 | 0.744 | |
## | 0.038 | 0.035 | 0.064 | 0.036 | 0.044 | 0.047 | 0.044 | 0.208 | 0.112 | 0.135 | |
## -------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|
## 1 | 204 | 215 | 273 | 91 | 203 | 198 | 121 | 1014 | 555 | 697 | 3571 |
## | 2.506 | 8.670 | 1.252 | 23.202 | 0.008 | 1.307 | 23.510 | 0.815 | 1.114 | 3.771 | |
## | 0.057 | 0.060 | 0.076 | 0.025 | 0.057 | 0.055 | 0.034 | 0.284 | 0.155 | 0.195 | 0.238 |
## | 0.266 | 0.291 | 0.222 | 0.144 | 0.237 | 0.220 | 0.154 | 0.245 | 0.249 | 0.256 | |
## | 0.014 | 0.014 | 0.018 | 0.006 | 0.014 | 0.013 | 0.008 | 0.068 | 0.037 | 0.046 | |
## -------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|
## Column Total | 767 | 739 | 1227 | 630 | 858 | 902 | 787 | 4140 | 2229 | 2720 | 14999 |
## | 0.051 | 0.049 | 0.082 | 0.042 | 0.057 | 0.060 | 0.052 | 0.276 | 0.149 | 0.181 | |
## -------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|-------------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 86.82547 d.f. = 9 p = 7.04213e-15
##
##
##
There is an association between leaving and department, where employees in HR are significantly more likely to leave, and employees in Management are the most likely to stay
Employees in the HR department are more than 2× more likely to leave than those in Management (0.291 / 0.144)
##
##
## Cell Contents
## |-------------------------|
## | N |
## | Chi-square contribution |
## | N / Row Total |
## | N / Col Total |
## | N / Table Total |
## |-------------------------|
##
##
## Total Observations in Table: 1526
##
##
## | hr$salary
## hr$left | high | low | medium | Row Total |
## -------------|-----------|-----------|-----------|-----------|
## 0 | 86 | 552 | 552 | 1190 |
## | 1.657 | 0.088 | 0.571 | |
## | 0.072 | 0.464 | 0.464 | 0.780 |
## | 0.896 | 0.790 | 0.755 | |
## | 0.056 | 0.362 | 0.362 | |
## -------------|-----------|-----------|-----------|-----------|
## 1 | 10 | 147 | 179 | 336 |
## | 5.869 | 0.310 | 2.023 | |
## | 0.030 | 0.438 | 0.533 | 0.220 |
## | 0.104 | 0.210 | 0.245 | |
## | 0.007 | 0.096 | 0.117 | |
## -------------|-----------|-----------|-----------|-----------|
## Column Total | 96 | 699 | 731 | 1526 |
## | 0.063 | 0.458 | 0.479 | |
## -------------|-----------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 10.51769 d.f. = 2 p = 0.005201312
##
##
##
There is an association between leaving and salary level where employees with a low salary are more likely to leave than employees with high salaries
Employees with a low salary level are 4.5 times more likely to leave (0.297 / 0.066)