##
## Welch Two Sample t-test
##
## data: hr$average_montly_hours by hr$left
## t = -7.5323, df = 4875.1, p-value = 5.907e-14
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## -10.534631 -6.183384
## sample estimates:
## mean in group Stayed mean in group Left
## 199.0602 207.4192
Reject the Ho, p-value < 0.01, there is a difference in means, where employees who left had more average monthly hours
Employees that left worked more hours
##
## Welch Two Sample t-test
##
## data: hr$satisfaction_level by hr$Work_accident
## t = -7.6329, df = 3097.1, p-value = 3.036e-14
## alternative hypothesis: true difference in means between group No and group Yes is not equal to 0
## 95 percent confidence interval:
## -0.05215193 -0.03083450
## sample estimates:
## mean in group No mean in group Yes
## 0.6068332 0.6483264
Reject the Ho, p-value < 0.01, there is a difference in means, where employees who had an accident had a higher satisfaction level than employees who didn’t
Employees that had an accident were more satisfied
##
## Welch Two Sample t-test
##
## data: hr$satisfaction_level by hr$left
## t = 46.636, df = 5167, p-value < 2.2e-16
## alternative hypothesis: true difference in means between group Stayed and group Left is not equal to 0
## 95 percent confidence interval:
## 0.2171815 0.2362417
## sample estimates:
## mean in group Stayed mean in group Left
## 0.6668096 0.4400980
Reject the Ho, p-value < 0.01, there is a difference in means, where employees who stayed had a higher satisfaction level than employees who left
Employees that stayed were more satisfied
##
## Welch Two Sample t-test
##
## data: hr$satisfaction_level by hr$promotion_last_5years
## t = -3.6545, df = 337.3, p-value = 0.0002987
## alternative hypothesis: true difference in means between group No and group Yes is not equal to 0
## 95 percent confidence interval:
## -0.06787297 -0.02037446
## sample estimates:
## mean in group No mean in group Yes
## 0.6118951 0.6560188
Reject the Ho, p-value < 0.01, there is a difference in means, where employees who got a promotion in the last 5 years had a higher satisfaction level than employees who left
Employees that got promoted were more satisfied