Kiểm định khác biệt giữa các nhóm

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Ben Teusch

HR Analytics Consultant

So sánh hai nhóm

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Định lượng mức độ khả dĩ

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Kiểm định t

  • Dùng khi biến cần so sánh là liên tục
t.test(tenure ~ is_manager, data = survey)
    Welch Two Sample t-test

data:  tenure by is_manager
t = -1.2158, df = 834.19, p-value = 0.2244
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -0.34197615  0.08037243
sample estimates:
mean in group Non-manager mean in group Manager 
                 7.376555            7.507357
Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Kiểm định chi-bình phương

  • Dùng khi biến cần so sánh là phân loại
chisq.test(survey$left_company, survey$is_manager)
    Pearson's Chi-squared test with Yates' continuity correction

data:  survey$left_company and survey$is_manager
X-squared = 26.275, df = 1, p-value = 1.97e-06
Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Công thức ở đâu?

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Cùng luyện tập nào!

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Preparing Video For Download...