1. Left vs.Salary
## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##              | hr$left 
##    hr$salary |         0 |         1 | Row Total | 
## -------------|-----------|-----------|-----------|
##         high |      1155 |        82 |      1237 | 
##              |    47.915 |   153.339 |           | 
##              |     0.934 |     0.066 |     0.082 | 
##              |     0.101 |     0.023 |           | 
##              |     0.077 |     0.005 |           | 
## -------------|-----------|-----------|-----------|
##          low |      5144 |      2172 |      7316 | 
##              |    33.200 |   106.247 |           | 
##              |     0.703 |     0.297 |     0.488 | 
##              |     0.450 |     0.608 |           | 
##              |     0.343 |     0.145 |           | 
## -------------|-----------|-----------|-----------|
##       medium |      5129 |      1317 |      6446 | 
##              |     9.648 |    30.876 |           | 
##              |     0.796 |     0.204 |     0.430 | 
##              |     0.449 |     0.369 |           | 
##              |     0.342 |     0.088 |           | 
## -------------|-----------|-----------|-----------|
## Column Total |     11428 |      3571 |     14999 | 
##              |     0.762 |     0.238 |           | 
## -------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  381.225     d.f. =  2     p =  1.652087e-83 
## 
## 
## 
Interpretations
Graph
2. Left vs. Sattisfaction Level
## 
##    Cell Contents
## |-------------------------|
## |                   Count |
## | Chi-square contribution |
## |             Row Percent |
## |          Column Percent |
## |           Total Percent |
## |-------------------------|
## 
## Total Observations in Table:  14999 
## 
##                       | hr$left 
## hr$satisfaction_group |        0  |        1  | Row Total | 
## ----------------------|-----------|-----------|-----------|
##           Low (0–25%) |      839  |      934  |     1773  | 
##                       |  193.963  |  620.725  |           | 
##                       |   47.321% |   52.679% |   11.821% | 
##                       |    7.342% |   26.155% |           | 
##                       |    5.594% |    6.227% |           | 
## ----------------------|-----------|-----------|-----------|
##   Medium-Low (26–50%) |     1423  |     1616  |     3039  | 
##                       |  343.990  | 1100.845  |           | 
##                       |   46.825% |   53.175% |   20.261% | 
##                       |   12.452% |   45.253% |           | 
##                       |    9.487% |   10.774% |           | 
## ----------------------|-----------|-----------|-----------|
##  Medium-High (51–75%) |     4766  |      253  |     5019  | 
##                       |  232.016  |  742.503  |           | 
##                       |   94.959% |    5.041% |   33.462% | 
##                       |   41.705% |    7.085% |           | 
##                       |   31.775% |    1.687% |           | 
## ----------------------|-----------|-----------|-----------|
##        High (76–100%) |     4400  |      768  |     5168  | 
##                       |   54.303  |  173.782  |           | 
##                       |   85.139% |   14.861% |   34.456% | 
##                       |   38.502% |   21.507% |           | 
##                       |   29.335% |    5.120% |           | 
## ----------------------|-----------|-----------|-----------|
##          Column Total |    11428  |     3571  |    14999  | 
##                       |   76.192% |   23.808% |           | 
## ----------------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  3462.128     d.f. =  3     p =  0 
## 
## 
##  
##        Minimum expected frequency: 422.1203
Interpretations
Graph
## # A tibble: 4 × 2
##   satisfaction_quartile pct_left
##   <ord>                    <dbl>
## 1 low                       52.7
## 2 medium-low                53.2
## 3 medium-high                5  
## 4 high                      14.9
3.Left vs. Average Monthly Hours
## 
##    Cell Contents
## |-------------------------|
## |                   Count |
## | Chi-square contribution |
## |             Row Percent |
## |          Column Percent |
## |           Total Percent |
## |-------------------------|
## 
## Total Observations in Table:  14999 
## 
##                       | hr$left 
##        hr$hours_group |        0  |        1  | Row Total | 
## ----------------------|-----------|-----------|-----------|
##            Low (≤183) |     4587  |     1634  |     6221  | 
##                       |    4.932  |   15.782  |           | 
##                       |   73.734% |   26.266% |   41.476% | 
##                       |   40.138% |   45.757% |           | 
##                       |   30.582% |   10.894% |           | 
## ----------------------|-----------|-----------|-----------|
##  Medium-Low (184–223) |     2922  |      147  |     3069  | 
##                       |  145.693  |  466.249  |           | 
##                       |   95.210% |    4.790% |   20.461% | 
##                       |   25.569% |    4.116% |           | 
##                       |   19.481% |    0.980% |           | 
## ----------------------|-----------|-----------|-----------|
## Medium-High (224–257) |     2460  |      773  |     3233  | 
##                       |    0.004  |    0.014  |           | 
##                       |   76.090% |   23.910% |   21.555% | 
##                       |   21.526% |   21.647% |           | 
##                       |   16.401% |    5.154% |           | 
## ----------------------|-----------|-----------|-----------|
##           High (≥258) |     1459  |     1017  |     2476  | 
##                       |   96.879  |  310.034  |           | 
##                       |   58.926% |   41.074% |   16.508% | 
##                       |   12.767% |   28.479% |           | 
##                       |    9.727% |    6.780% |           | 
## ----------------------|-----------|-----------|-----------|
##          Column Total |    11428  |     3571  |    14999  | 
##                       |   76.192% |   23.808% |           | 
## ----------------------|-----------|-----------|-----------|
## 
##  
## Statistics for All Table Factors
## 
## 
## Pearson's Chi-squared test 
## ------------------------------------------------------------
## Chi^2 =  1039.587     d.f. =  3     p =  4.648851e-225 
## 
## 
##  
##        Minimum expected frequency: 589.4924
Interpretations
Graph
## # A tibble: 4 × 2
##   hours_quartile pct_left
##   <ord>             <dbl>
## 1 low                26.3
## 2 medium-low          4.8
## 3 medium-high        23.9
## 4 high               41.1
4. Left vs. Promotion in the Last 5 Years
## 
##  
##    Cell Contents
## |-------------------------|
## |                       N |
## | Chi-square contribution |
## |           N / Row Total |
## |           N / Col Total |
## |         N / Table Total |
## |-------------------------|
## 
##  
## Total Observations in Table:  14999 
## 
##  
##                          | hr$left 
## hr$promotion_last_5years |         0 |         1 | Row Total | 
## -------------------------|-----------|-----------|-----------|
##                        0 |     11128 |      3552 |     14680 | 
##                          |     0.290 |     0.928 |           | 
##                          |     0.758 |     0.242 |     0.979 | 
##                          |     0.974 |     0.995 |           | 
##                          |     0.742 |     0.237 |           | 
## -------------------------|-----------|-----------|-----------|
##                        1 |       300 |        19 |       319 | 
##                          |    13.343 |    42.702 |           | 
##                          |     0.940 |     0.060 |     0.021 | 
##                          |     0.026 |     0.005 |           | 
##                          |     0.020 |     0.001 |           | 
## -------------------------|-----------|-----------|-----------|
##             Column Total |     11428 |      3571 |     14999 | 
##                          |     0.762 |     0.238 |           | 
## -------------------------|-----------|-----------|-----------|
## 
##  
## 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 
## 
## 
Interpretations
Graph
## # A tibble: 2 × 2
##   promotion_last_5years pct_left
##   <ord>                    <dbl>
## 1 No                        24.2
## 2 Yes                        6