##
##
## 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, employees with work accidents are less likely to leave.
Employees without a work accident are more that 3 time 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$salary
## hr$left | high | low | medium | Row Total |
## -------------|-----------|-----------|-----------|-----------|
## 0 | 1155 | 5144 | 5129 | 11428 |
## | 47.915 | 33.200 | 9.648 | |
## | 0.101 | 0.450 | 0.449 | 0.762 |
## | 0.934 | 0.703 | 0.796 | |
## | 0.077 | 0.343 | 0.342 | |
## -------------|-----------|-----------|-----------|-----------|
## 1 | 82 | 2172 | 1317 | 3571 |
## | 153.339 | 106.247 | 30.876 | |
## | 0.023 | 0.608 | 0.369 | 0.238 |
## | 0.066 | 0.297 | 0.204 | |
## | 0.005 | 0.145 | 0.088 | |
## -------------|-----------|-----------|-----------|-----------|
## Column Total | 1237 | 7316 | 6446 | 14999 |
## | 0.082 | 0.488 | 0.430 | |
## -------------|-----------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 381.225 d.f. = 2 p = 1.652087e-83
##
##
##
There is an association between leaving and salary
Employees with low salaries are more than 4 times more likely to leave than employees with high salaries (0.066 / 0.297)
##
##
## 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 and receiving a promotion
Employees who did not get a promotion are over 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$salary
## hr$Department | high | low | medium | Row Total |
## --------------|-----------|-----------|-----------|-----------|
## accounting | 74 | 358 | 335 | 767 |
## | 1.825 | 0.694 | 0.088 | |
## | 0.096 | 0.467 | 0.437 | 0.051 |
## | 0.060 | 0.049 | 0.052 | |
## | 0.005 | 0.024 | 0.022 | |
## --------------|-----------|-----------|-----------|-----------|
## hr | 45 | 335 | 359 | 739 |
## | 4.173 | 1.798 | 5.398 | |
## | 0.061 | 0.453 | 0.486 | 0.049 |
## | 0.036 | 0.046 | 0.056 | |
## | 0.003 | 0.022 | 0.024 | |
## --------------|-----------|-----------|-----------|-----------|
## IT | 83 | 609 | 535 | 1227 |
## | 3.271 | 0.185 | 0.112 | |
## | 0.068 | 0.496 | 0.436 | 0.082 |
## | 0.067 | 0.083 | 0.083 | |
## | 0.006 | 0.041 | 0.036 | |
## --------------|-----------|-----------|-----------|-----------|
## management | 225 | 180 | 225 | 630 |
## | 576.312 | 52.729 | 7.731 | |
## | 0.357 | 0.286 | 0.357 | 0.042 |
## | 0.182 | 0.025 | 0.035 | |
## | 0.015 | 0.012 | 0.015 | |
## --------------|-----------|-----------|-----------|-----------|
## marketing | 80 | 402 | 376 | 858 |
## | 1.206 | 0.651 | 0.143 | |
## | 0.093 | 0.469 | 0.438 | 0.057 |
## | 0.065 | 0.055 | 0.058 | |
## | 0.005 | 0.027 | 0.025 | |
## --------------|-----------|-----------|-----------|-----------|
## product_mng | 68 | 451 | 383 | 902 |
## | 0.549 | 0.277 | 0.056 | |
## | 0.075 | 0.500 | 0.425 | 0.060 |
## | 0.055 | 0.062 | 0.059 | |
## | 0.005 | 0.030 | 0.026 | |
## --------------|-----------|-----------|-----------|-----------|
## RandD | 51 | 364 | 372 | 787 |
## | 2.979 | 1.029 | 3.373 | |
## | 0.065 | 0.463 | 0.473 | 0.052 |
## | 0.041 | 0.050 | 0.058 | |
## | 0.003 | 0.024 | 0.025 | |
## --------------|-----------|-----------|-----------|-----------|
## sales | 269 | 2099 | 1772 | 4140 |
## | 15.367 | 3.142 | 0.029 | |
## | 0.065 | 0.507 | 0.428 | 0.276 |
## | 0.217 | 0.287 | 0.275 | |
## | 0.018 | 0.140 | 0.118 | |
## --------------|-----------|-----------|-----------|-----------|
## support | 141 | 1146 | 942 | 2229 |
## | 9.979 | 3.177 | 0.265 | |
## | 0.063 | 0.514 | 0.423 | 0.149 |
## | 0.114 | 0.157 | 0.146 | |
## | 0.009 | 0.076 | 0.063 | |
## --------------|-----------|-----------|-----------|-----------|
## technical | 201 | 1372 | 1147 | 2720 |
## | 2.425 | 1.545 | 0.412 | |
## | 0.074 | 0.504 | 0.422 | 0.181 |
## | 0.162 | 0.188 | 0.178 | |
## | 0.013 | 0.091 | 0.076 | |
## --------------|-----------|-----------|-----------|-----------|
## Column Total | 1237 | 7316 | 6446 | 14999 |
## | 0.082 | 0.488 | 0.430 | |
## --------------|-----------|-----------|-----------|-----------|
##
##
## Statistics for All Table Factors
##
##
## Pearson's Chi-squared test
## ------------------------------------------------------------
## Chi^2 = 700.9193 d.f. = 18 p = 3.621445e-137
##
##
##
There is an association between department and salary
Employees in the Management department are more than 3 times more likely to receive a high salary compared to employees in any other department (.357/.096 for accounting)